$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1285891200000,1.18086],[1285977600000,1.17778],[1286064000000,1.17778],[1286150400000,1.17778],[1286236800000,1.17324],[1286323200000,1.17676],[1286409600000,1.17858],[1286496000000,1.18554],[1286582400000,1.17787],[1286668800000,1.17787],[1286755200000,1.17787],[1286841600000,1.18894],[1286928000000,1.18341],[1287014400000,1.1915],[1287100800000,1.20773],[1287187200000,1.20817],[1287273600000,1.20817],[1287360000000,1.20817],[1287446400000,1.18379],[1287532800000,1.17458],[1287619200000,1.17771],[1287705600000,1.19654],[1287792000000,1.19098],[1287878400000,1.19098],[1287964800000,1.19098],[1288051200000,1.20674],[1288137600000,1.18315],[1288224000000,1.17025],[1288310400000,1.17675],[1288396800000,1.17106],[1288483200000,1.17106]], 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: [[1285891200000, 1.180863],[1285891200000, 1.180863],[1285977600000, 1.177780],[1286064000000, 1.177780],[1286150400000, 1.177780],[1286236800000, 1.173242],[1286323200000, 1.176758],[1286409600000, 1.178579],[1286496000000, 1.185535],[1286582400000, 1.177868],[1286668800000, 1.177868],[1286755200000, 1.177868],[1286841600000, 1.188938],[1286928000000, 1.183405],[1287014400000, 1.191496],[1287100800000, 1.207732],[1287187200000, 1.208174],[1287273600000, 1.208174],[1287360000000, 1.208174],[1287446400000, 1.183788],[1287532800000, 1.174578],[1287619200000, 1.177712],[1287705600000, 1.196536],[1287792000000, 1.190980],[1287878400000, 1.190980],[1287964800000, 1.190980],[1288051200000, 1.206736],[1288137600000, 1.183151],[1288224000000, 1.170246],[1288310400000, 1.176753],[1288396800000, 1.171058],[1288483200000, 1.171058]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });