$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1464739200000,0.089278],[1464825600000,0.089281],[1464912000000,0.089538],[1464998400000,0.089257],[1465084800000,0.089257],[1465171200000,0.089257],[1465257600000,0.091046],[1465344000000,0.091235],[1465430400000,0.091526],[1465516800000,0.091061],[1465603200000,0.09081],[1465689600000,0.09081],[1465776000000,0.09081],[1465862400000,0.090068],[1465948800000,0.089078],[1466035200000,null],[1466121600000,0.088302],[1466208000000,0.089201],[1466294400000,0.089201],[1466380800000,0.089201],[1466467200000,0.089201],[1466553600000,0.08967],[1466640000000,0.089347],[1466726400000,0.090172],[1466812800000,0.086584],[1466899200000,0.086584],[1466985600000,0.086584],[1467072000000,0.086584],[1467158400000,0.086584],[1467244800000,0.086965]], 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, 0.089278],[1464739200000, 0.089278],[1464825600000, 0.089281],[1464912000000, 0.089538],[1464998400000, 0.089257],[1465084800000, 0.089257],[1465171200000, 0.089257],[1465257600000, 0.091046],[1465344000000, 0.091235],[1465430400000, 0.091526],[1465516800000, 0.091061],[1465603200000, 0.090810],[1465689600000, 0.090810],[1465776000000, 0.090810],[1465862400000, 0.090068],[1465948800000, 0.089078],[1466121600000, 0.088302],[1466208000000, 0.089201],[1466294400000, 0.089201],[1466380800000, 0.089201],[1466467200000, 0.089201],[1466553600000, 0.089670],[1466640000000, 0.089347],[1466726400000, 0.090172],[1466812800000, 0.086584],[1466899200000, 0.086584],[1466985600000, 0.086584],[1467072000000, 0.086584],[1467158400000, 0.086584],[1467244800000, 0.086965]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });