$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1422748800000,2.58696],[1422835200000,2.58696],[1422921600000,2.58415],[1423008000000,2.59557],[1423094400000,2.67362],[1423180800000,2.88042],[1423267200000,null],[1423353600000,3.70118],[1423440000000,3.70118],[1423526400000,3.99348],[1423612800000,3.97678],[1423699200000,4.09476],[1423785600000,4.02055],[1423872000000,4.15107],[1423958400000,4.15107],[1424044800000,4.15107],[1424131200000,4.17504],[1424217600000,4.21787],[1424304000000,4.28439],[1424390400000,4.37371],[1424476800000,4.45359],[1424563200000,4.45359],[1424649600000,4.45359],[1424736000000,4.5338],[1424822400000,4.52189],[1424908800000,4.4847],[1424995200000,4.79402],[1425081600000,4.43584]], 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: [[1422748800000, 2.586961],[1422748800000, 2.586961],[1422835200000, 2.586961],[1422921600000, 2.584150],[1423008000000, 2.595566],[1423094400000, 2.673620],[1423180800000, 2.880425],[1423353600000, 3.701178],[1423440000000, 3.701178],[1423526400000, 3.993480],[1423612800000, 3.976779],[1423699200000, 4.094757],[1423785600000, 4.020553],[1423872000000, 4.151068],[1423958400000, 4.151068],[1424044800000, 4.151068],[1424131200000, 4.175041],[1424217600000, 4.217867],[1424304000000, 4.284390],[1424390400000, 4.373710],[1424476800000, 4.453589],[1424563200000, 4.453589],[1424649600000, 4.453589],[1424736000000, 4.533796],[1424822400000, 4.521888],[1424908800000, 4.484705],[1424995200000, 4.794022],[1425081600000, 4.435843]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });