$(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: [[1459468800000,19.5043],[1459555200000,19.3952],[1459641600000,19.3952],[1459728000000,19.3952],[1459814400000,19.2428],[1459900800000,19.2106],[1459987200000,19.1413],[1460073600000,19.0777],[1460160000000,18.9913],[1460246400000,null],[1460332800000,null],[1460419200000,18.985],[1460505600000,18.966],[1460592000000,18.8609],[1460678400000,18.8054],[1460764800000,18.7515],[1460851200000,18.7515],[1460937600000,18.7515],[1461024000000,18.7977],[1461110400000,18.9909],[1461196800000,18.966],[1461283200000,18.8905],[1461369600000,18.7657],[1461456000000,18.7657],[1461542400000,18.7657],[1461628800000,18.759],[1461715200000,18.6899],[1461801600000,18.6877],[1461888000000,18.7303],[1461974400000,18.7686]], 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: [[1459468800000, 19.504337],[1459468800000, 19.504337],[1459555200000, 19.395158],[1459641600000, 19.395158],[1459728000000, 19.395158],[1459814400000, 19.242758],[1459900800000, 19.210634],[1459987200000, 19.141291],[1460073600000, 19.077744],[1460160000000, 18.991325],[1460419200000, 18.985015],[1460505600000, 18.965980],[1460592000000, 18.860945],[1460678400000, 18.805372],[1460764800000, 18.751492],[1460851200000, 18.751492],[1460937600000, 18.751492],[1461024000000, 18.797674],[1461110400000, 18.990944],[1461196800000, 18.966019],[1461283200000, 18.890496],[1461369600000, 18.765728],[1461456000000, 18.765728],[1461542400000, 18.765728],[1461628800000, 18.758962],[1461715200000, 18.689894],[1461801600000, 18.687706],[1461888000000, 18.730347],[1461974400000, 18.768594]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });