$(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: [[1404864000000,1.88786],[1404950400000,1.87971],[1405036800000,null],[1405123200000,1.88484],[1405209600000,1.88484],[1405296000000,1.88484],[1405382400000,1.88506],[1405468800000,1.8865],[1405555200000,1.88895],[1405641600000,1.88853],[1405728000000,1.87743],[1405814400000,null],[1405900800000,null],[1405987200000,1.87734],[1406073600000,1.87902],[1406160000000,1.87649],[1406246400000,1.88451],[1406332800000,1.89703],[1406419200000,1.89703],[1406505600000,1.89703],[1406592000000,1.91393],[1406678400000,1.93756],[1406764800000,1.94215]], 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: [[1404864000000, 1.887856],[1404864000000, 1.887856],[1404950400000, 1.879714],[1405123200000, 1.884843],[1405209600000, 1.884843],[1405296000000, 1.884843],[1405382400000, 1.885060],[1405468800000, 1.886499],[1405555200000, 1.888951],[1405641600000, 1.888529],[1405728000000, 1.877433],[1405987200000, 1.877337],[1406073600000, 1.879025],[1406160000000, 1.876491],[1406246400000, 1.884514],[1406332800000, 1.897030],[1406419200000, 1.897030],[1406505600000, 1.897030],[1406592000000, 1.913929],[1406678400000, 1.937561],[1406764800000, 1.942152]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });