$(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: [[1409529600000,10.8935],[1409616000000,10.5098],[1409702400000,10.4147],[1409788800000,9.99601],[1409875200000,null],[1409961600000,10.2343],[1410048000000,10.2343],[1410134400000,10.2343],[1410220800000,10.2154],[1410307200000,10.3],[1410393600000,10.2719],[1410480000000,10.2614],[1410566400000,10.2422],[1410652800000,10.2422],[1410739200000,10.2422],[1410825600000,10.2274],[1410912000000,10.2651],[1410998400000,10.3763],[1411084800000,10.6246],[1411171200000,null],[1411257600000,10.5822],[1411344000000,10.5822],[1411430400000,null],[1411516800000,10.6637],[1411603200000,10.2172],[1411689600000,10.2287],[1411776000000,10.1595],[1411862400000,10.1595],[1411948800000,10.1595],[1412035200000,10.1518]], 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: [[1409529600000, 10.893549],[1409529600000, 10.893549],[1409616000000, 10.509778],[1409702400000, 10.414693],[1409788800000, 9.996014],[1409961600000, 10.234327],[1410048000000, 10.234327],[1410134400000, 10.234327],[1410220800000, 10.215394],[1410307200000, 10.299966],[1410393600000, 10.271948],[1410480000000, 10.261433],[1410566400000, 10.242179],[1410652800000, 10.242179],[1410739200000, 10.242179],[1410825600000, 10.227414],[1410912000000, 10.265075],[1410998400000, 10.376265],[1411084800000, 10.624556],[1411257600000, 10.582226],[1411344000000, 10.582226],[1411516800000, 10.663667],[1411603200000, 10.217165],[1411689600000, 10.228711],[1411776000000, 10.159521],[1411862400000, 10.159521],[1411948800000, 10.159521],[1412035200000, 10.151763]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });