$(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: [[1364774400000,0.033621],[1364860800000,0.033621],[1364947200000,0.033994],[1365033600000,0.03394],[1365120000000,0.033995],[1365206400000,0.034358],[1365292800000,0.034358],[1365379200000,0.034358],[1365465600000,0.03496],[1365552000000,0.035017],[1365638400000,0.035086],[1365724800000,0.035213],[1365811200000,0.035418],[1365897600000,0.035418],[1365984000000,0.035418],[1366070400000,0.035526],[1366156800000,0.035603],[1366243200000,0.035629],[1366329600000,0.034993],[1366416000000,0.035149],[1366502400000,0.035149],[1366588800000,0.035149],[1366675200000,0.034759],[1366761600000,0.034673],[1366848000000,0.034704],[1366934400000,0.034706],[1367020800000,0.034453],[1367107200000,0.034453],[1367193600000,0.034453],[1367280000000,0.035154]], 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: [[1364774400000, 0.033621],[1364774400000, 0.033621],[1364860800000, 0.033621],[1364947200000, 0.033994],[1365033600000, 0.033940],[1365120000000, 0.033995],[1365206400000, 0.034358],[1365292800000, 0.034358],[1365379200000, 0.034358],[1365465600000, 0.034960],[1365552000000, 0.035017],[1365638400000, 0.035086],[1365724800000, 0.035213],[1365811200000, 0.035418],[1365897600000, 0.035418],[1365984000000, 0.035418],[1366070400000, 0.035526],[1366156800000, 0.035603],[1366243200000, 0.035629],[1366329600000, 0.034993],[1366416000000, 0.035149],[1366502400000, 0.035149],[1366588800000, 0.035149],[1366675200000, 0.034759],[1366761600000, 0.034673],[1366848000000, 0.034704],[1366934400000, 0.034706],[1367020800000, 0.034453],[1367107200000, 0.034453],[1367193600000, 0.034453],[1367280000000, 0.035154]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });