$(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: [[1504224000000,18.8785],[1504310400000,19.0091],[1504396800000,19.0091],[1504483200000,19.0091],[1504569600000,19.0968],[1504656000000,19.1496],[1504742400000,19.2149],[1504828800000,19.3452],[1504915200000,19.5014],[1505001600000,19.5014],[1505088000000,19.5014],[1505174400000,19.3457],[1505260800000,19.3159],[1505347200000,19.3826],[1505433600000,19.3693],[1505520000000,19.5222],[1505606400000,19.5222],[1505692800000,19.5222],[1505779200000,19.4495],[1505865600000,19.3663],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,19.5106],[1506729600000,19.5737]], 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: [[1504224000000, 18.878529],[1504224000000, 18.878529],[1504310400000, 19.009088],[1504396800000, 19.009088],[1504483200000, 19.009088],[1504569600000, 19.096836],[1504656000000, 19.149624],[1504742400000, 19.214888],[1504828800000, 19.345230],[1504915200000, 19.501361],[1505001600000, 19.501361],[1505088000000, 19.501361],[1505174400000, 19.345676],[1505260800000, 19.315928],[1505347200000, 19.382556],[1505433600000, 19.369312],[1505520000000, 19.522236],[1505606400000, 19.522236],[1505692800000, 19.522236],[1505779200000, 19.449528],[1505865600000, 19.366336],[1506643200000, 19.510646],[1506729600000, 19.573684]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });