$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1435708800000,1.12328],[1435795200000,1.11447],[1435881600000,1.10934],[1435968000000,1.10657],[1436054400000,1.10657],[1436140800000,1.10657],[1436227200000,1.11979],[1436313600000,1.14417],[1436400000000,1.15606],[1436486400000,1.14754],[1436572800000,1.15031],[1436659200000,1.15031],[1436745600000,1.15031],[1436832000000,1.15218],[1436918400000,1.16803],[1437004800000,1.16686],[1437091200000,1.16037],[1437177600000,1.15574],[1437264000000,1.15574],[1437350400000,1.15574],[1437436800000,1.1765],[1437523200000,1.15731],[1437609600000,1.15856],[1437696000000,1.15435],[1437782400000,1.15556],[1437868800000,1.15556],[1437955200000,1.15556],[1438041600000,1.15556],[1438128000000,1.18086],[1438214400000,1.17361],[1438300800000,1.15051]], 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, 1.123280],[1435708800000, 1.123280],[1435795200000, 1.114467],[1435881600000, 1.109342],[1435968000000, 1.106573],[1436054400000, 1.106573],[1436140800000, 1.106573],[1436227200000, 1.119794],[1436313600000, 1.144173],[1436400000000, 1.156056],[1436486400000, 1.147542],[1436572800000, 1.150315],[1436659200000, 1.150315],[1436745600000, 1.150315],[1436832000000, 1.152179],[1436918400000, 1.168033],[1437004800000, 1.166857],[1437091200000, 1.160370],[1437177600000, 1.155736],[1437264000000, 1.155736],[1437350400000, 1.155736],[1437436800000, 1.176497],[1437523200000, 1.157307],[1437609600000, 1.158556],[1437696000000, 1.154346],[1437782400000, 1.155555],[1437868800000, 1.155555],[1437955200000, 1.155555],[1438041600000, 1.155555],[1438128000000, 1.180861],[1438214400000, 1.173614],[1438300800000, 1.150505]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });