$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1509494400000,4.20121],[1509580800000,4.19421],[1509667200000,4.21425],[1509753600000,4.22332],[1509840000000,4.22332],[1509926400000,4.22332],[1510012800000,4.18167],[1510099200000,4.15595],[1510185600000,4.14749],[1510272000000,4.15034],[1510358400000,4.15246],[1510444800000,4.15246],[1510531200000,4.15246],[1510617600000,4.14889],[1510704000000,4.18201],[1510790400000,4.2129],[1510876800000,4.18788],[1510963200000,4.20047],[1511049600000,4.20047],[1511136000000,4.20047],[1511222400000,4.19177],[1511308800000,4.17174],[1511395200000,4.20696],[1511481600000,4.27646],[1511568000000,4.2952],[1511654400000,4.2952],[1511740800000,4.2952],[1511827200000,4.30957],[1511913600000,4.29239],[1512000000000,4.29294]], 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: [[1509494400000, 4.201206],[1509494400000, 4.201206],[1509580800000, 4.194208],[1509667200000, 4.214248],[1509753600000, 4.223318],[1509840000000, 4.223318],[1509926400000, 4.223318],[1510012800000, 4.181668],[1510099200000, 4.155952],[1510185600000, 4.147488],[1510272000000, 4.150335],[1510358400000, 4.152459],[1510444800000, 4.152459],[1510531200000, 4.152459],[1510617600000, 4.148887],[1510704000000, 4.182007],[1510790400000, 4.212903],[1510876800000, 4.187882],[1510963200000, 4.200467],[1511049600000, 4.200467],[1511136000000, 4.200467],[1511222400000, 4.191771],[1511308800000, 4.171738],[1511395200000, 4.206963],[1511481600000, 4.276463],[1511568000000, 4.295204],[1511654400000, 4.295204],[1511740800000, 4.295204],[1511827200000, 4.309566],[1511913600000, 4.292386],[1512000000000, 4.292944]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });