$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1454284800000,18.1645],[1454371200000,18.1591],[1454457600000,18.474],[1454544000000,18.443],[1454630400000,18.8828],[1454716800000,18.8443],[1454803200000,18.8443],[1454889600000,18.8443],[1454976000000,18.5488],[1455062400000,18.6592],[1455148800000,18.718],[1455235200000,18.6827],[1455321600000,18.7802],[1455408000000,18.7802],[1455494400000,18.7802],[1455580800000,19.4012],[1455667200000,19.553],[1455753600000,19.3407],[1455840000000,19.3373],[1455926400000,19.5097],[1456012800000,19.5097],[1456099200000,19.5097],[1456185600000,19.6894],[1456272000000,19.8218],[1456358400000,19.6676],[1456444800000,19.9981],[1456531200000,19.9719],[1456617600000,19.9719],[1456704000000,19.9719]], 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: [[1454284800000, 18.164481],[1454284800000, 18.164481],[1454371200000, 18.159060],[1454457600000, 18.474014],[1454544000000, 18.442978],[1454630400000, 18.882812],[1454716800000, 18.844285],[1454803200000, 18.844285],[1454889600000, 18.844285],[1454976000000, 18.548782],[1455062400000, 18.659207],[1455148800000, 18.718022],[1455235200000, 18.682703],[1455321600000, 18.780244],[1455408000000, 18.780244],[1455494400000, 18.780244],[1455580800000, 19.401199],[1455667200000, 19.553018],[1455753600000, 19.340692],[1455840000000, 19.337263],[1455926400000, 19.509725],[1456012800000, 19.509725],[1456099200000, 19.509725],[1456185600000, 19.689447],[1456272000000, 19.821838],[1456358400000, 19.667551],[1456444800000, 19.998055],[1456531200000, 19.971870],[1456617600000, 19.971870],[1456704000000, 19.971870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });