$(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: [[1406851200000,2.17409],[1406937600000,2.14657],[1407024000000,2.14657],[1407110400000,2.14657],[1407196800000,2.18882],[1407283200000,2.21388],[1407369600000,2.21754],[1407456000000,2.22996],[1407542400000,2.26041],[1407628800000,2.26041],[1407715200000,2.26041],[1407801600000,2.30334],[1407888000000,2.35907],[1407974400000,2.34692],[1408060800000,2.34595],[1408147200000,2.35616],[1408233600000,2.35616],[1408320000000,2.35616],[1408406400000,2.34757],[1408492800000,2.32505],[1408579200000,2.36828],[1408665600000,2.33624],[1408752000000,2.37744],[1408838400000,2.37744],[1408924800000,2.37744],[1409011200000,2.37744],[1409097600000,2.4185],[1409184000000,2.45818],[1409270400000,2.37548],[1409356800000,2.40606]], 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: [[1406851200000, 2.174088],[1406851200000, 2.174088],[1406937600000, 2.146568],[1407024000000, 2.146568],[1407110400000, 2.146568],[1407196800000, 2.188823],[1407283200000, 2.213883],[1407369600000, 2.217538],[1407456000000, 2.229962],[1407542400000, 2.260410],[1407628800000, 2.260410],[1407715200000, 2.260410],[1407801600000, 2.303343],[1407888000000, 2.359074],[1407974400000, 2.346924],[1408060800000, 2.345954],[1408147200000, 2.356157],[1408233600000, 2.356157],[1408320000000, 2.356157],[1408406400000, 2.347571],[1408492800000, 2.325053],[1408579200000, 2.368275],[1408665600000, 2.336243],[1408752000000, 2.377440],[1408838400000, 2.377440],[1408924800000, 2.377440],[1409011200000, 2.377440],[1409097600000, 2.418502],[1409184000000, 2.458177],[1409270400000, 2.375478],[1409356800000, 2.406057]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });