$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1459468800000,36.9367],[1459555200000,36.7903],[1459641600000,36.7903],[1459728000000,36.7903],[1459814400000,36.5743],[1459900800000,36.7127],[1459987200000,36.4953],[1460073600000,36.3545],[1460160000000,36.0954],[1460246400000,null],[1460332800000,null],[1460419200000,36.0972],[1460505600000,36.1137],[1460592000000,35.8562],[1460678400000,36.0097],[1460764800000,35.8074],[1460851200000,35.8074],[1460937600000,35.8074],[1461024000000,35.8686],[1461110400000,35.8652],[1461196800000,35.8612],[1461283200000,35.7343],[1461369600000,35.6237],[1461456000000,35.6237],[1461542400000,35.6237],[1461628800000,35.6128],[1461715200000,35.6273],[1461801600000,35.5355],[1461888000000,35.6001],[1461974400000,35.718]], 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, 36.936738],[1459468800000, 36.936738],[1459555200000, 36.790273],[1459641600000, 36.790273],[1459728000000, 36.790273],[1459814400000, 36.574296],[1459900800000, 36.712696],[1459987200000, 36.495334],[1460073600000, 36.354488],[1460160000000, 36.095429],[1460419200000, 36.097189],[1460505600000, 36.113694],[1460592000000, 35.856163],[1460678400000, 36.009727],[1460764800000, 35.807364],[1460851200000, 35.807364],[1460937600000, 35.807364],[1461024000000, 35.868572],[1461110400000, 35.865183],[1461196800000, 35.861165],[1461283200000, 35.734321],[1461369600000, 35.623728],[1461456000000, 35.623728],[1461542400000, 35.623728],[1461628800000, 35.612781],[1461715200000, 35.627275],[1461801600000, 35.535488],[1461888000000, 35.600138],[1461974400000, 35.718001]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });