$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1464739200000,3.8225],[1464825600000,3.81562],[1464912000000,3.80604],[1464998400000,3.79584],[1465084800000,3.79584],[1465171200000,3.79584],[1465257600000,3.80518],[1465344000000,3.79819],[1465430400000,3.79801],[1465516800000,3.81158],[1465603200000,3.81389],[1465689600000,3.81389],[1465776000000,3.81389],[1465862400000,3.79113],[1465948800000,3.77856],[1466035200000,null],[1466121600000,3.7814],[1466208000000,3.77944],[1466294400000,3.77944],[1466380800000,3.77944],[1466467200000,3.77944],[1466553600000,3.78205],[1466640000000,3.78467],[1466726400000,3.78183],[1466812800000,3.75505],[1466899200000,3.75505],[1466985600000,3.75505],[1467072000000,3.75505],[1467158400000,3.75505],[1467244800000,3.74098]], 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, 3.822497],[1464739200000, 3.822497],[1464825600000, 3.815620],[1464912000000, 3.806039],[1464998400000, 3.795845],[1465084800000, 3.795845],[1465171200000, 3.795845],[1465257600000, 3.805183],[1465344000000, 3.798189],[1465430400000, 3.798014],[1465516800000, 3.811577],[1465603200000, 3.813893],[1465689600000, 3.813893],[1465776000000, 3.813893],[1465862400000, 3.791127],[1465948800000, 3.778562],[1466121600000, 3.781399],[1466208000000, 3.779437],[1466294400000, 3.779437],[1466380800000, 3.779437],[1466467200000, 3.779437],[1466553600000, 3.782054],[1466640000000, 3.784674],[1466726400000, 3.781833],[1466812800000, 3.755051],[1466899200000, 3.755051],[1466985600000, 3.755051],[1467072000000, 3.755051],[1467158400000, 3.755051],[1467244800000, 3.740980]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });