$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1375315200000,6.2789],[1375401600000,6.28388],[1375488000000,6.26375],[1375574400000,null],[1375660800000,6.26375],[1375747200000,6.30058],[1375833600000,6.30252],[1375920000000,6.30465],[1376006400000,6.33823],[1376092800000,6.35156],[1376179200000,6.35156],[1376265600000,6.35156],[1376352000000,6.33147],[1376438400000,6.31852],[1376524800000,6.28757],[1376611200000,6.28484],[1376697600000,6.28917],[1376784000000,6.28917],[1376870400000,6.28917],[1376956800000,6.26445],[1377043200000,6.26454],[1377129600000,6.2608],[1377216000000,6.23081],[1377302400000,6.23519],[1377388800000,6.23519],[1377475200000,6.23519],[1377561600000,6.23519],[1377648000000,6.2218],[1377734400000,6.23437],[1377820800000,6.2687],[1377907200000,6.27185]], 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, 6.278897],[1375315200000, 6.278897],[1375401600000, 6.283877],[1375488000000, 6.263745],[1375660800000, 6.263745],[1375747200000, 6.300583],[1375833600000, 6.302520],[1375920000000, 6.304652],[1376006400000, 6.338229],[1376092800000, 6.351559],[1376179200000, 6.351559],[1376265600000, 6.351559],[1376352000000, 6.331467],[1376438400000, 6.318521],[1376524800000, 6.287573],[1376611200000, 6.284840],[1376697600000, 6.289172],[1376784000000, 6.289172],[1376870400000, 6.289172],[1376956800000, 6.264454],[1377043200000, 6.264544],[1377129600000, 6.260801],[1377216000000, 6.230808],[1377302400000, 6.235194],[1377388800000, 6.235194],[1377475200000, 6.235194],[1377561600000, 6.235194],[1377648000000, 6.221805],[1377734400000, 6.234372],[1377820800000, 6.268705],[1377907200000, 6.271854]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });