$(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: [[1464739200000,35.2707],[1464825600000,35.2068],[1464912000000,35.1957],[1464998400000,35.0587],[1465084800000,35.0587],[1465171200000,35.0587],[1465257600000,35.2824],[1465344000000,35.3143],[1465430400000,35.3176],[1465516800000,35.3523],[1465603200000,35.3064],[1465689600000,35.3064],[1465776000000,35.3064],[1465862400000,35.1563],[1465948800000,35.0336],[1466035200000,null],[1466121600000,35.0457],[1466208000000,35.1385],[1466294400000,35.1385],[1466380800000,35.1385],[1466467200000,35.1385],[1466553600000,35.3094],[1466640000000,35.2621],[1466726400000,35.3794],[1466812800000,34.7747],[1466899200000,34.7747],[1466985600000,34.7747],[1467072000000,34.7747],[1467158400000,34.7747],[1467244800000,34.6935]], 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: [[1464739200000, 35.270667],[1464739200000, 35.270667],[1464825600000, 35.206800],[1464912000000, 35.195748],[1464998400000, 35.058693],[1465084800000, 35.058693],[1465171200000, 35.058693],[1465257600000, 35.282354],[1465344000000, 35.314320],[1465430400000, 35.317559],[1465516800000, 35.352292],[1465603200000, 35.306424],[1465689600000, 35.306424],[1465776000000, 35.306424],[1465862400000, 35.156263],[1465948800000, 35.033592],[1466121600000, 35.045716],[1466208000000, 35.138516],[1466294400000, 35.138516],[1466380800000, 35.138516],[1466467200000, 35.138516],[1466553600000, 35.309444],[1466640000000, 35.262104],[1466726400000, 35.379444],[1466812800000, 34.774687],[1466899200000, 34.774687],[1466985600000, 34.774687],[1467072000000, 34.774687],[1467158400000, 34.774687],[1467244800000, 34.693480]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });