$(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: [[1462060800000,0.234891],[1462147200000,0.234891],[1462233600000,0.234891],[1462320000000,0.234891],[1462406400000,0.236398],[1462492800000,0.234579],[1462579200000,0.23524],[1462665600000,0.23524],[1462752000000,0.23524],[1462838400000,0.23524],[1462924800000,0.230911],[1463011200000,0.232847],[1463097600000,0.231557],[1463184000000,0.233758],[1463270400000,0.233758],[1463356800000,0.233758],[1463443200000,0.233284],[1463529600000,0.230812],[1463616000000,0.230894],[1463702400000,0.229627],[1463788800000,0.228363],[1463875200000,null],[1463961600000,0.228363],[1464048000000,0.229635],[1464134400000,0.229025],[1464220800000,0.227953],[1464307200000,0.22803],[1464393600000,0.229233],[1464480000000,0.229233],[1464566400000,0.229233],[1464652800000,0.226342]], 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: [[1462060800000, 0.234891],[1462060800000, 0.234891],[1462147200000, 0.234891],[1462233600000, 0.234891],[1462320000000, 0.234891],[1462406400000, 0.236398],[1462492800000, 0.234579],[1462579200000, 0.235240],[1462665600000, 0.235240],[1462752000000, 0.235240],[1462838400000, 0.235240],[1462924800000, 0.230911],[1463011200000, 0.232847],[1463097600000, 0.231557],[1463184000000, 0.233758],[1463270400000, 0.233758],[1463356800000, 0.233758],[1463443200000, 0.233284],[1463529600000, 0.230812],[1463616000000, 0.230894],[1463702400000, 0.229627],[1463788800000, 0.228363],[1463961600000, 0.228363],[1464048000000, 0.229635],[1464134400000, 0.229025],[1464220800000, 0.227953],[1464307200000, 0.228030],[1464393600000, 0.229233],[1464480000000, 0.229233],[1464566400000, 0.229233],[1464652800000, 0.226342]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });