$(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: [[1435708800000,0.074629],[1435795200000,0.07418],[1435881600000,0.073849],[1435968000000,0.073925],[1436054400000,0.073925],[1436140800000,0.073925],[1436227200000,0.07405],[1436313600000,0.075023],[1436400000000,0.0762],[1436486400000,0.07667],[1436572800000,0.078819],[1436659200000,0.078819],[1436745600000,0.078819],[1436832000000,0.078057],[1436918400000,0.078041],[1437004800000,0.078315],[1437091200000,0.077286],[1437177600000,0.07762],[1437264000000,0.07762],[1437350400000,0.07762],[1437436800000,0.077311],[1437523200000,0.077446],[1437609600000,0.077831],[1437696000000,0.078214],[1437782400000,0.077593],[1437868800000,0.077593],[1437955200000,0.077593],[1438041600000,0.077593],[1438128000000,0.078413],[1438214400000,0.078719],[1438300800000,0.076638]], 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: [[1435708800000, 0.074629],[1435708800000, 0.074629],[1435795200000, 0.074180],[1435881600000, 0.073849],[1435968000000, 0.073925],[1436054400000, 0.073925],[1436140800000, 0.073925],[1436227200000, 0.074050],[1436313600000, 0.075023],[1436400000000, 0.076200],[1436486400000, 0.076670],[1436572800000, 0.078819],[1436659200000, 0.078819],[1436745600000, 0.078819],[1436832000000, 0.078057],[1436918400000, 0.078041],[1437004800000, 0.078315],[1437091200000, 0.077286],[1437177600000, 0.077620],[1437264000000, 0.077620],[1437350400000, 0.077620],[1437436800000, 0.077311],[1437523200000, 0.077446],[1437609600000, 0.077831],[1437696000000, 0.078214],[1437782400000, 0.077593],[1437868800000, 0.077593],[1437955200000, 0.077593],[1438041600000, 0.077593],[1438128000000, 0.078413],[1438214400000, 0.078719],[1438300800000, 0.076638]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });