$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1462060800000,1.06282],[1462147200000,1.06282],[1462233600000,1.06282],[1462320000000,1.06282],[1462406400000,1.07237],[1462492800000,1.06328],[1462579200000,1.06411],[1462665600000,1.06411],[1462752000000,1.06411],[1462838400000,1.06411],[1462924800000,1.0606],[1463011200000,1.06928],[1463097600000,1.06683],[1463184000000,1.06891],[1463270400000,1.06891],[1463356800000,1.06891],[1463443200000,1.06417],[1463529600000,1.05856],[1463616000000,1.05424],[1463702400000,1.04663],[1463788800000,1.0462],[1463875200000,null],[1463961600000,1.0462],[1464048000000,1.04229],[1464134400000,1.03864],[1464220800000,1.03561],[1464307200000,1.03733],[1464393600000,1.03862],[1464480000000,1.03862],[1464566400000,1.03862],[1464652800000,1.03743]], 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, 1.062822],[1462060800000, 1.062822],[1462147200000, 1.062822],[1462233600000, 1.062822],[1462320000000, 1.062822],[1462406400000, 1.072368],[1462492800000, 1.063276],[1462579200000, 1.064113],[1462665600000, 1.064113],[1462752000000, 1.064113],[1462838400000, 1.064113],[1462924800000, 1.060600],[1463011200000, 1.069279],[1463097600000, 1.066828],[1463184000000, 1.068914],[1463270400000, 1.068914],[1463356800000, 1.068914],[1463443200000, 1.064165],[1463529600000, 1.058562],[1463616000000, 1.054239],[1463702400000, 1.046632],[1463788800000, 1.046201],[1463961600000, 1.046201],[1464048000000, 1.042290],[1464134400000, 1.038643],[1464220800000, 1.035607],[1464307200000, 1.037327],[1464393600000, 1.038623],[1464480000000, 1.038623],[1464566400000, 1.038623],[1464652800000, 1.037431]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });