$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1104883200000,8.69325],[1104969600000,9.95332],[1105056000000,9.93548],[1105142400000,null],[1105228800000,9.93548],[1105315200000,null],[1105401600000,9.96113],[1105488000000,9.95872],[1105574400000,9.95853],[1105660800000,9.98461],[1105747200000,9.91168],[1105833600000,9.91168],[1105920000000,9.91168],[1106006400000,9.87191],[1106092800000,9.9277],[1106179200000,9.89689],[1106265600000,9.89689],[1106352000000,9.88902],[1106438400000,9.88902],[1106524800000,9.88902],[1106611200000,null],[1106697600000,9.93184],[1106784000000,9.95811],[1106870400000,9.98553],[1106956800000,9.98287],[1107043200000,9.98287],[1107129600000,10.002]], 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, 8.693251],[1104883200000, 8.693251],[1104969600000, 9.953318],[1105056000000, 9.935476],[1105228800000, 9.935476],[1105401600000, 9.961134],[1105488000000, 9.958718],[1105574400000, 9.958532],[1105660800000, 9.984607],[1105747200000, 9.911677],[1105833600000, 9.911677],[1105920000000, 9.911677],[1106006400000, 9.871908],[1106092800000, 9.927696],[1106179200000, 9.896889],[1106265600000, 9.896889],[1106352000000, 9.889018],[1106438400000, 9.889018],[1106524800000, 9.889018],[1106697600000, 9.931843],[1106784000000, 9.958109],[1106870400000, 9.985533],[1106956800000, 9.982866],[1107043200000, 9.982866],[1107129600000, 10.001986]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });