$(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: [[1283299200000,1.34326],[1283385600000,1.35591],[1283472000000,1.35981],[1283558400000,1.36327],[1283644800000,1.36327],[1283731200000,1.36327],[1283817600000,1.36733],[1283904000000,1.35371],[1283990400000,1.34857],[1284076800000,1.35041],[1284163200000,1.35163],[1284249600000,1.35163],[1284336000000,1.35163],[1284422400000,1.35945],[1284508800000,1.36647],[1284595200000,1.38143],[1284681600000,1.39086],[1284768000000,1.38885],[1284854400000,1.38885],[1284940800000,1.38885],[1285027200000,1.39023],[1285113600000,1.39484],[1285200000000,1.42058],[1285286400000,1.41575],[1285372800000,1.42381],[1285459200000,1.42381],[1285545600000,1.42381],[1285632000000,1.43149],[1285718400000,1.42945],[1285804800000,1.44545]], 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: [[1283299200000, 1.343265],[1283299200000, 1.343265],[1283385600000, 1.355910],[1283472000000, 1.359813],[1283558400000, 1.363267],[1283644800000, 1.363267],[1283731200000, 1.363267],[1283817600000, 1.367332],[1283904000000, 1.353707],[1283990400000, 1.348569],[1284076800000, 1.350408],[1284163200000, 1.351634],[1284249600000, 1.351634],[1284336000000, 1.351634],[1284422400000, 1.359451],[1284508800000, 1.366472],[1284595200000, 1.381428],[1284681600000, 1.390856],[1284768000000, 1.388848],[1284854400000, 1.388848],[1284940800000, 1.388848],[1285027200000, 1.390225],[1285113600000, 1.394836],[1285200000000, 1.420585],[1285286400000, 1.415748],[1285372800000, 1.423809],[1285459200000, 1.423809],[1285545600000, 1.423809],[1285632000000, 1.431489],[1285718400000, 1.429453],[1285804800000, 1.445451]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });