$(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: [[1246406400000,0.998759],[1246492800000,1.00454],[1246579200000,0.989962],[1246665600000,0.980405],[1246752000000,0.980405],[1246838400000,0.980405],[1246924800000,0.971944],[1247011200000,0.975513],[1247097600000,0.958302],[1247184000000,0.971329],[1247270400000,0.963324],[1247356800000,0.963324],[1247443200000,0.963324],[1247529600000,0.964105],[1247616000000,0.97244],[1247702400000,0.979667],[1247788800000,0.980254],[1247875200000,0.975865],[1247961600000,0.975865],[1248048000000,0.975865],[1248134400000,0.990098],[1248220800000,1.00026],[1248307200000,1.00625],[1248393600000,1.01366],[1248480000000,1.02897],[1248566400000,1.02897],[1248652800000,1.02897],[1248739200000,1.04261],[1248825600000,1.03375],[1248912000000,1.026],[1248998400000,1.03507]], 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: [[1246406400000, 0.998759],[1246406400000, 0.998759],[1246492800000, 1.004537],[1246579200000, 0.989962],[1246665600000, 0.980405],[1246752000000, 0.980405],[1246838400000, 0.980405],[1246924800000, 0.971944],[1247011200000, 0.975513],[1247097600000, 0.958302],[1247184000000, 0.971329],[1247270400000, 0.963324],[1247356800000, 0.963324],[1247443200000, 0.963324],[1247529600000, 0.964105],[1247616000000, 0.972440],[1247702400000, 0.979667],[1247788800000, 0.980254],[1247875200000, 0.975865],[1247961600000, 0.975865],[1248048000000, 0.975865],[1248134400000, 0.990098],[1248220800000, 1.000265],[1248307200000, 1.006250],[1248393600000, 1.013664],[1248480000000, 1.028969],[1248566400000, 1.028969],[1248652800000, 1.028969],[1248739200000, 1.042607],[1248825600000, 1.033750],[1248912000000, 1.025997],[1248998400000, 1.035067]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });