$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1104883200000,5.95749],[1104969600000,7.0156],[1105056000000,6.99358],[1105142400000,null],[1105228800000,6.99358],[1105315200000,null],[1105401600000,6.95088],[1105488000000,6.9721],[1105574400000,6.96998],[1105660800000,7.01918],[1105747200000,6.94412],[1105833600000,6.94412],[1105920000000,6.94412],[1106006400000,6.94094],[1106092800000,6.92755],[1106179200000,6.86151],[1106265600000,6.86151],[1106352000000,6.87583],[1106438400000,6.87583],[1106524800000,6.87583],[1106611200000,null],[1106697600000,6.90859],[1106784000000,6.89798],[1106870400000,6.90899],[1106956800000,6.91363],[1107043200000,6.91363],[1107129600000,6.91337]], 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, 5.957485],[1104883200000, 5.957485],[1104969600000, 7.015596],[1105056000000, 6.993581],[1105228800000, 6.993581],[1105401600000, 6.950879],[1105488000000, 6.972099],[1105574400000, 6.969977],[1105660800000, 7.019179],[1105747200000, 6.944121],[1105833600000, 6.944121],[1105920000000, 6.944121],[1106006400000, 6.940938],[1106092800000, 6.927546],[1106179200000, 6.861513],[1106265600000, 6.861513],[1106352000000, 6.875834],[1106438400000, 6.875834],[1106524800000, 6.875834],[1106697600000, 6.908590],[1106784000000, 6.897982],[1106870400000, 6.908990],[1106956800000, 6.913634],[1107043200000, 6.913634],[1107129600000, 6.913373]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });