$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1459468800000,0.233381],[1459555200000,0.233054],[1459641600000,0.233054],[1459728000000,0.233054],[1459814400000,0.232983],[1459900800000,0.235609],[1459987200000,0.235163],[1460073600000,0.238088],[1460160000000,0.236083],[1460246400000,null],[1460332800000,null],[1460419200000,0.23625],[1460505600000,0.235907],[1460592000000,0.233184],[1460678400000,0.234452],[1460764800000,0.233879],[1460851200000,0.233879],[1460937600000,0.233879],[1461024000000,0.235555],[1461110400000,0.232559],[1461196800000,0.232815],[1461283200000,0.23142],[1461369600000,0.228612],[1461456000000,0.228612],[1461542400000,0.228612],[1461628800000,0.228426],[1461715200000,0.227646],[1461801600000,0.226573],[1461888000000,0.232879],[1461974400000,0.234891]], 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, 0.233381],[1459468800000, 0.233381],[1459555200000, 0.233054],[1459641600000, 0.233054],[1459728000000, 0.233054],[1459814400000, 0.232983],[1459900800000, 0.235609],[1459987200000, 0.235163],[1460073600000, 0.238088],[1460160000000, 0.236083],[1460419200000, 0.236250],[1460505600000, 0.235907],[1460592000000, 0.233184],[1460678400000, 0.234452],[1460764800000, 0.233879],[1460851200000, 0.233879],[1460937600000, 0.233879],[1461024000000, 0.235555],[1461110400000, 0.232559],[1461196800000, 0.232815],[1461283200000, 0.231420],[1461369600000, 0.228612],[1461456000000, 0.228612],[1461542400000, 0.228612],[1461628800000, 0.228426],[1461715200000, 0.227646],[1461801600000, 0.226573],[1461888000000, 0.232879],[1461974400000, 0.234891]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });