$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1104883200000,3.83093],[1104969600000,4.51803],[1105056000000,4.51257],[1105142400000,null],[1105228800000,4.51257],[1105315200000,null],[1105401600000,4.49343],[1105488000000,4.50685],[1105574400000,4.50024],[1105660800000,4.53465],[1105747200000,4.48268],[1105833600000,4.48268],[1105920000000,4.48268],[1106006400000,4.49252],[1106092800000,4.48879],[1106179200000,4.45148],[1106265600000,4.45148],[1106352000000,4.4386],[1106438400000,4.4386],[1106524800000,4.4386],[1106611200000,null],[1106697600000,4.46869],[1106784000000,4.44888],[1106870400000,4.46664],[1106956800000,4.47166],[1107043200000,4.47166],[1107129600000,4.46802]], 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, 3.830934],[1104883200000, 3.830934],[1104969600000, 4.518030],[1105056000000, 4.512570],[1105228800000, 4.512570],[1105401600000, 4.493425],[1105488000000, 4.506851],[1105574400000, 4.500243],[1105660800000, 4.534646],[1105747200000, 4.482681],[1105833600000, 4.482681],[1105920000000, 4.482681],[1106006400000, 4.492517],[1106092800000, 4.488788],[1106179200000, 4.451481],[1106265600000, 4.451481],[1106352000000, 4.438599],[1106438400000, 4.438599],[1106524800000, 4.438599],[1106697600000, 4.468687],[1106784000000, 4.448876],[1106870400000, 4.466635],[1106956800000, 4.471660],[1107043200000, 4.471660],[1107129600000, 4.468024]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });