$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1491004800000,19.3366],[1491091200000,19.3366],[1491177600000,19.3366],[1491264000000,19.3375],[1491350400000,19.3816],[1491436800000,19.3994],[1491523200000,19.3475],[1491609600000,19.2413],[1491696000000,19.2413],[1491782400000,19.2413],[1491868800000,19.1465],[1491955200000,19.1562],[1492041600000,19.1685],[1492128000000,19.2365],[1492214400000,19.1992],[1492300800000,19.1992],[1492387200000,19.1992],[1492473600000,19.1992],[1492560000000,19.1978],[1492646400000,19.1694],[1492732800000,19.1552],[1492819200000,19.1321],[1492905600000,19.1321],[1492992000000,19.1321],[1493078400000,19.15],[1493164800000,19.1198],[1493251200000,19.0473],[1493337600000,19.0007],[1493424000000,19.0268],[1493510400000,19.0268]], 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: [[1491004800000, 19.336645],[1491004800000, 19.336645],[1491091200000, 19.336645],[1491177600000, 19.336645],[1491264000000, 19.337518],[1491350400000, 19.381599],[1491436800000, 19.399421],[1491523200000, 19.347529],[1491609600000, 19.241281],[1491696000000, 19.241281],[1491782400000, 19.241281],[1491868800000, 19.146494],[1491955200000, 19.156228],[1492041600000, 19.168504],[1492128000000, 19.236547],[1492214400000, 19.199204],[1492300800000, 19.199204],[1492387200000, 19.199204],[1492473600000, 19.199204],[1492560000000, 19.197821],[1492646400000, 19.169377],[1492732800000, 19.155247],[1492819200000, 19.132143],[1492905600000, 19.132143],[1492992000000, 19.132143],[1493078400000, 19.149984],[1493164800000, 19.119794],[1493251200000, 19.047259],[1493337600000, 19.000747],[1493424000000, 19.026803],[1493510400000, 19.026803]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });