$(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: [[1459468800000,1.10345],[1459555200000,1.10423],[1459641600000,1.10423],[1459728000000,1.10423],[1459814400000,1.09376],[1459900800000,1.09639],[1459987200000,1.08868],[1460073600000,1.08494],[1460160000000,1.07776],[1460246400000,null],[1460332800000,null],[1460419200000,1.07766],[1460505600000,1.07733],[1460592000000,1.06492],[1460678400000,1.06773],[1460764800000,1.06368],[1460851200000,1.06368],[1460937600000,1.06368],[1461024000000,1.06628],[1461110400000,1.06808],[1461196800000,1.07012],[1461283200000,1.06615],[1461369600000,1.05541],[1461456000000,1.05541],[1461542400000,1.05541],[1461628800000,1.05526],[1461715200000,1.05665],[1461801600000,1.05425],[1461888000000,1.05775],[1461974400000,1.06282]], 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, 1.103450],[1459468800000, 1.103450],[1459555200000, 1.104225],[1459641600000, 1.104225],[1459728000000, 1.104225],[1459814400000, 1.093762],[1459900800000, 1.096390],[1459987200000, 1.088679],[1460073600000, 1.084943],[1460160000000, 1.077759],[1460419200000, 1.077663],[1460505600000, 1.077335],[1460592000000, 1.064922],[1460678400000, 1.067734],[1460764800000, 1.063683],[1460851200000, 1.063683],[1460937600000, 1.063683],[1461024000000, 1.066282],[1461110400000, 1.068078],[1461196800000, 1.070116],[1461283200000, 1.066155],[1461369600000, 1.055407],[1461456000000, 1.055407],[1461542400000, 1.055407],[1461628800000, 1.055265],[1461715200000, 1.056653],[1461801600000, 1.054251],[1461888000000, 1.057750],[1461974400000, 1.062822]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });