$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1404864000000,1.70996],[1404950400000,1.70389],[1405036800000,null],[1405123200000,1.72601],[1405209600000,1.72601],[1405296000000,1.72601],[1405382400000,1.72507],[1405468800000,1.72502],[1405555200000,1.72333],[1405641600000,1.71459],[1405728000000,1.70384],[1405814400000,null],[1405900800000,null],[1405987200000,1.70826],[1406073600000,1.70377],[1406160000000,1.69864],[1406246400000,1.70959],[1406332800000,1.71911],[1406419200000,1.71911],[1406505600000,1.71911],[1406592000000,1.73876],[1406678400000,1.75946],[1406764800000,1.75587]], 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.709956],[1404864000000, 1.709956],[1404950400000, 1.703887],[1405123200000, 1.726007],[1405209600000, 1.726007],[1405296000000, 1.726007],[1405382400000, 1.725075],[1405468800000, 1.725024],[1405555200000, 1.723328],[1405641600000, 1.714591],[1405728000000, 1.703841],[1405987200000, 1.708263],[1406073600000, 1.703770],[1406160000000, 1.698637],[1406246400000, 1.709592],[1406332800000, 1.719112],[1406419200000, 1.719112],[1406505600000, 1.719112],[1406592000000, 1.738762],[1406678400000, 1.759456],[1406764800000, 1.755872]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });