$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1464739200000,1.03778],[1464825600000,1.03763],[1464912000000,1.03693],[1464998400000,1.03191],[1465084800000,1.03191],[1465171200000,1.03191],[1465257600000,1.04934],[1465344000000,1.04832],[1465430400000,1.05035],[1465516800000,1.04956],[1465603200000,1.0463],[1465689600000,1.0463],[1465776000000,1.0463],[1465862400000,1.04068],[1465948800000,1.03398],[1466035200000,null],[1466121600000,1.02813],[1466208000000,1.03559],[1466294400000,1.03559],[1466380800000,1.03559],[1466467200000,1.03559],[1466553600000,1.04062],[1466640000000,1.03773],[1466726400000,1.04719],[1466812800000,1.01557],[1466899200000,1.01557],[1466985600000,1.01557],[1467072000000,1.01557],[1467158400000,1.01557],[1467244800000,1.01658]], 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, 1.037783],[1464739200000, 1.037783],[1464825600000, 1.037631],[1464912000000, 1.036934],[1464998400000, 1.031908],[1465084800000, 1.031908],[1465171200000, 1.031908],[1465257600000, 1.049337],[1465344000000, 1.048315],[1465430400000, 1.050347],[1465516800000, 1.049555],[1465603200000, 1.046301],[1465689600000, 1.046301],[1465776000000, 1.046301],[1465862400000, 1.040677],[1465948800000, 1.033978],[1466121600000, 1.028132],[1466208000000, 1.035593],[1466294400000, 1.035593],[1466380800000, 1.035593],[1466467200000, 1.035593],[1466553600000, 1.040624],[1466640000000, 1.037734],[1466726400000, 1.047194],[1466812800000, 1.015567],[1466899200000, 1.015567],[1466985600000, 1.015567],[1467072000000, 1.015567],[1467158400000, 1.015567],[1467244800000, 1.016580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });