$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1285891200000,6.01693],[1285977600000,6.02638],[1286064000000,6.02638],[1286150400000,6.02638],[1286236800000,6.02084],[1286323200000,6.02767],[1286409600000,6.03688],[1286496000000,6.05619],[1286582400000,6.03044],[1286668800000,6.03044],[1286755200000,6.03044],[1286841600000,6.05772],[1286928000000,6.05086],[1287014400000,6.07262],[1287100800000,6.11146],[1287187200000,6.10776],[1287273600000,6.10776],[1287360000000,6.10776],[1287446400000,6.07703],[1287532800000,6.04915],[1287619200000,6.05336],[1287705600000,6.09548],[1287792000000,6.07835],[1287878400000,6.07835],[1287964800000,6.07835],[1288051200000,6.12625],[1288137600000,6.09684],[1288224000000,6.07566],[1288310400000,6.09264],[1288396800000,6.101],[1288483200000,6.101]], 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, 6.016926],[1285891200000, 6.016926],[1285977600000, 6.026381],[1286064000000, 6.026381],[1286150400000, 6.026381],[1286236800000, 6.020838],[1286323200000, 6.027674],[1286409600000, 6.036881],[1286496000000, 6.056193],[1286582400000, 6.030440],[1286668800000, 6.030440],[1286755200000, 6.030440],[1286841600000, 6.057722],[1286928000000, 6.050857],[1287014400000, 6.072624],[1287100800000, 6.111464],[1287187200000, 6.107756],[1287273600000, 6.107756],[1287360000000, 6.107756],[1287446400000, 6.077032],[1287532800000, 6.049148],[1287619200000, 6.053361],[1287705600000, 6.095481],[1287792000000, 6.078349],[1287878400000, 6.078349],[1287964800000, 6.078349],[1288051200000, 6.126251],[1288137600000, 6.096836],[1288224000000, 6.075655],[1288310400000, 6.092644],[1288396800000, 6.100998],[1288483200000, 6.100998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });