$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1527811200000,3.20424],[1527897600000,3.19675],[1527984000000,3.19675],[1528070400000,3.19675],[1528156800000,3.22763],[1528243200000,3.21419],[1528329600000,3.23191],[1528416000000,3.26027],[1528502400000,3.23087],[1528588800000,3.23087],[1528675200000,3.23087],[1528761600000,3.23763],[1528848000000,3.25641],[1528934400000,3.2565],[1529020800000,3.26258],[1529107200000,3.23532],[1529193600000,3.23532],[1529280000000,3.23532],[1529366400000,3.24103],[1529452800000,3.21443],[1529539200000,null],[1529625600000,3.22018],[1529712000000,3.24009],[1529798400000,3.24009],[1529884800000,3.24009],[1529971200000,3.2336],[1530057600000,3.22726],[1530144000000,3.22646],[1530230400000,3.22646],[1530316800000,3.22646]], 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: [[1527811200000, 3.204245],[1527811200000, 3.204245],[1527897600000, 3.196748],[1527984000000, 3.196748],[1528070400000, 3.196748],[1528156800000, 3.227629],[1528243200000, 3.214190],[1528329600000, 3.231906],[1528416000000, 3.260270],[1528502400000, 3.230872],[1528588800000, 3.230872],[1528675200000, 3.230872],[1528761600000, 3.237626],[1528848000000, 3.256413],[1528934400000, 3.256495],[1529020800000, 3.262579],[1529107200000, 3.235316],[1529193600000, 3.235316],[1529280000000, 3.235316],[1529366400000, 3.241027],[1529452800000, 3.214429],[1529625600000, 3.220177],[1529712000000, 3.240085],[1529798400000, 3.240085],[1529884800000, 3.240085],[1529971200000, 3.233598],[1530057600000, 3.227264],[1530144000000, 3.226462],[1530230400000, 3.226462],[1530316800000, 3.226462]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });