$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1104883200000,7.21779],[1104969600000,8.09879],[1105056000000,8.08128],[1105142400000,null],[1105228800000,8.08128],[1105315200000,null],[1105401600000,8.06907],[1105488000000,8.08896],[1105574400000,8.08535],[1105660800000,8.1199],[1105747200000,8.08334],[1105833600000,8.08334],[1105920000000,8.08334],[1106006400000,8.08334],[1106092800000,8.07265],[1106179200000,8.08863],[1106265600000,8.08863],[1106352000000,8.03874],[1106438400000,8.03874],[1106524800000,8.03874],[1106611200000,null],[1106697600000,8.0645],[1106784000000,8.0592],[1106870400000,8.07104],[1106956800000,8.06643],[1107043200000,8.06643],[1107129600000,8.06424]], 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: [[1104883200000, 7.217791],[1104883200000, 7.217791],[1104969600000, 8.098788],[1105056000000, 8.081285],[1105228800000, 8.081285],[1105401600000, 8.069070],[1105488000000, 8.088965],[1105574400000, 8.085353],[1105660800000, 8.119903],[1105747200000, 8.083343],[1105833600000, 8.083343],[1105920000000, 8.083343],[1106006400000, 8.083343],[1106092800000, 8.072648],[1106179200000, 8.088630],[1106265600000, 8.088630],[1106352000000, 8.038737],[1106438400000, 8.038737],[1106524800000, 8.038737],[1106697600000, 8.064497],[1106784000000, 8.059203],[1106870400000, 8.071045],[1106956800000, 8.066425],[1107043200000, 8.066425],[1107129600000, 8.064244]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });