$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1262736000000,0.0428697],[1262822400000,0.0426156],[1262908800000,0.0426156],[1262995200000,0.0426156],[1263081600000,0.0426156],[1263168000000,0.0426156],[1263254400000,0.0435268],[1263340800000,0.0431892],[1263427200000,0.0436857],[1263513600000,0.0433518],[1263600000000,0.0431069],[1263686400000,0.0431069],[1263772800000,0.0431069],[1263859200000,0.042939],[1263945600000,0.0426627],[1264032000000,0.0420587],[1264118400000,0.0416569],[1264204800000,0.0416141],[1264291200000,0.0416141],[1264377600000,0.0416141],[1264464000000,0.0417882],[1264550400000,0.0413373],[1264636800000,0.0414387],[1264723200000,0.041286],[1264809600000,0.0412001],[1264896000000,0.0412001]], 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: [[1262736000000, 0.042870],[1262736000000, 0.042870],[1262822400000, 0.042616],[1262908800000, 0.042616],[1262995200000, 0.042616],[1263081600000, 0.042616],[1263168000000, 0.042616],[1263254400000, 0.043527],[1263340800000, 0.043189],[1263427200000, 0.043686],[1263513600000, 0.043352],[1263600000000, 0.043107],[1263686400000, 0.043107],[1263772800000, 0.043107],[1263859200000, 0.042939],[1263945600000, 0.042663],[1264032000000, 0.042059],[1264118400000, 0.041657],[1264204800000, 0.041614],[1264291200000, 0.041614],[1264377600000, 0.041614],[1264464000000, 0.041788],[1264550400000, 0.041337],[1264636800000, 0.041439],[1264723200000, 0.041286],[1264809600000, 0.041200],[1264896000000, 0.041200]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });