$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс XDR, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс XDR', data: [[1112313600000,7.97806],[1112400000000,7.97806],[1112486400000,7.97806],[1112572800000,7.97806],[1112659200000,7.94296],[1112745600000,7.92088],[1112832000000,7.93756],[1112918400000,7.94069],[1113004800000,7.91045],[1113091200000,7.91045],[1113177600000,7.91045],[1113264000000,7.95291],[1113350400000,7.95817],[1113436800000,7.94316],[1113523200000,7.90233],[1113609600000,7.86773],[1113696000000,7.86773],[1113782400000,7.86773],[1113868800000,7.89576],[1113955200000,7.8561],[1114041600000,7.6632],[1114128000000,7.66827],[1114214400000,7.6738],[1114300800000,7.6738],[1114387200000,7.6738],[1114473600000,7.65649],[1114560000000,7.65452],[1114646400000,7.63603],[1114732800000,7.6434],[1114819200000,7.65974]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1112313600000, 7.978063],[1112313600000, 7.978063],[1112400000000, 7.978063],[1112486400000, 7.978063],[1112572800000, 7.978063],[1112659200000, 7.942960],[1112745600000, 7.920880],[1112832000000, 7.937559],[1112918400000, 7.940692],[1113004800000, 7.910454],[1113091200000, 7.910454],[1113177600000, 7.910454],[1113264000000, 7.952907],[1113350400000, 7.958167],[1113436800000, 7.943159],[1113523200000, 7.902333],[1113609600000, 7.867732],[1113696000000, 7.867732],[1113782400000, 7.867732],[1113868800000, 7.895764],[1113955200000, 7.856102],[1114041600000, 7.663196],[1114128000000, 7.668269],[1114214400000, 7.673804],[1114300800000, 7.673804],[1114387200000, 7.673804],[1114473600000, 7.656492],[1114560000000, 7.654519],[1114646400000, 7.636035],[1114732800000, 7.643397],[1114819200000, 7.659744]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });