$(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: [[1375315200000,12.0955],[1375401600000,12.0735],[1375488000000,12.0514],[1375574400000,null],[1375660800000,12.0514],[1375747200000,12.1054],[1375833600000,12.1106],[1375920000000,12.1349],[1376006400000,12.1718],[1376092800000,12.1773],[1376179200000,12.1773],[1376265600000,12.1773],[1376352000000,12.1446],[1376438400000,12.1279],[1376524800000,12.1126],[1376611200000,12.1346],[1376697600000,12.1654],[1376784000000,12.1654],[1376870400000,12.1654],[1376956800000,12.1676],[1377043200000,12.1842],[1377129600000,12.1838],[1377216000000,12.1384],[1377302400000,12.1528],[1377388800000,12.1528],[1377475200000,12.1528],[1377561600000,12.1528],[1377648000000,12.1526],[1377734400000,12.1541],[1377820800000,12.1189],[1377907200000,12.1116]], 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: [[1375315200000, 12.095468],[1375315200000, 12.095468],[1375401600000, 12.073489],[1375488000000, 12.051372],[1375660800000, 12.051372],[1375747200000, 12.105415],[1375833600000, 12.110569],[1375920000000, 12.134913],[1376006400000, 12.171834],[1376092800000, 12.177323],[1376179200000, 12.177323],[1376265600000, 12.177323],[1376352000000, 12.144611],[1376438400000, 12.127916],[1376524800000, 12.112606],[1376611200000, 12.134599],[1376697600000, 12.165369],[1376784000000, 12.165369],[1376870400000, 12.165369],[1376956800000, 12.167609],[1377043200000, 12.184228],[1377129600000, 12.183801],[1377216000000, 12.138414],[1377302400000, 12.152754],[1377388800000, 12.152754],[1377475200000, 12.152754],[1377561600000, 12.152754],[1377648000000, 12.152606],[1377734400000, 12.154140],[1377820800000, 12.118924],[1377907200000, 12.111597]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });