$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1404864000000,11.0047],[1404950400000,10.9197],[1405036800000,null],[1405123200000,10.9599],[1405209600000,10.9599],[1405296000000,10.9599],[1405382400000,10.992],[1405468800000,10.9128],[1405555200000,10.9177],[1405641600000,10.8893],[1405728000000,10.8381],[1405814400000,null],[1405900800000,null],[1405987200000,10.8472],[1406073600000,10.8617],[1406160000000,10.8246],[1406246400000,10.897],[1406332800000,10.9581],[1406419200000,10.9581],[1406505600000,10.9581],[1406592000000,11.0128],[1406678400000,11.0903],[1406764800000,11.0944]], 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, 11.004664],[1404864000000, 11.004664],[1404950400000, 10.919653],[1405123200000, 10.959879],[1405209600000, 10.959879],[1405296000000, 10.959879],[1405382400000, 10.992015],[1405468800000, 10.912761],[1405555200000, 10.917673],[1405641600000, 10.889254],[1405728000000, 10.838148],[1405987200000, 10.847167],[1406073600000, 10.861708],[1406160000000, 10.824563],[1406246400000, 10.897049],[1406332800000, 10.958107],[1406419200000, 10.958107],[1406505600000, 10.958107],[1406592000000, 11.012760],[1406678400000, 11.090268],[1406764800000, 11.094419]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });