$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1375315200000,2.5043],[1375401600000,2.49836],[1375488000000,2.48018],[1375574400000,null],[1375660800000,2.48018],[1375747200000,2.51145],[1375833600000,2.51867],[1375920000000,2.52186],[1376006400000,2.53855],[1376092800000,2.55248],[1376179200000,2.55248],[1376265600000,2.55248],[1376352000000,2.53407],[1376438400000,2.53446],[1376524800000,2.51805],[1376611200000,2.52682],[1376697600000,2.52186],[1376784000000,2.52186],[1376870400000,2.52186],[1376956800000,2.50944],[1377043200000,2.53253],[1377129600000,2.5229],[1377216000000,2.51063],[1377302400000,2.52219],[1377388800000,2.52219],[1377475200000,2.52219],[1377561600000,2.52219],[1377648000000,2.51085],[1377734400000,2.48503],[1377820800000,2.47601],[1377907200000,2.48135]], 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, 2.504297],[1375315200000, 2.504297],[1375401600000, 2.498355],[1375488000000, 2.480178],[1375660800000, 2.480178],[1375747200000, 2.511452],[1375833600000, 2.518675],[1375920000000, 2.521861],[1376006400000, 2.538546],[1376092800000, 2.552484],[1376179200000, 2.552484],[1376265600000, 2.552484],[1376352000000, 2.534068],[1376438400000, 2.534464],[1376524800000, 2.518051],[1376611200000, 2.526816],[1376697600000, 2.521857],[1376784000000, 2.521857],[1376870400000, 2.521857],[1376956800000, 2.509437],[1377043200000, 2.532526],[1377129600000, 2.522895],[1377216000000, 2.510627],[1377302400000, 2.522187],[1377388800000, 2.522187],[1377475200000, 2.522187],[1377561600000, 2.522187],[1377648000000, 2.510849],[1377734400000, 2.485035],[1377820800000, 2.476010],[1377907200000, 2.481349]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });