$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1409529600000,12.7351],[1409616000000,12.2459],[1409702400000,12.1518],[1409788800000,11.6317],[1409875200000,null],[1409961600000,11.9825],[1410048000000,11.9825],[1410134400000,11.9825],[1410220800000,12.0079],[1410307200000,12.0659],[1410393600000,12.0193],[1410480000000,11.8602],[1410566400000,11.805],[1410652800000,11.805],[1410739200000,11.805],[1410825600000,11.6817],[1410912000000,11.7176],[1410998400000,11.8133],[1411084800000,12.1616],[1411171200000,null],[1411257600000,12.017],[1411344000000,12.017],[1411430400000,null],[1411516800000,11.998],[1411603200000,11.5239],[1411689600000,11.4871],[1411776000000,11.3703],[1411862400000,11.3703],[1411948800000,11.3703],[1412035200000,11.3476]], 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, 12.735061],[1409529600000, 12.735061],[1409616000000, 12.245904],[1409702400000, 12.151833],[1409788800000, 11.631713],[1409961600000, 11.982547],[1410048000000, 11.982547],[1410134400000, 11.982547],[1410220800000, 12.007854],[1410307200000, 12.065886],[1410393600000, 12.019280],[1410480000000, 11.860203],[1410566400000, 11.805011],[1410652800000, 11.805011],[1410739200000, 11.805011],[1410825600000, 11.681721],[1410912000000, 11.717578],[1410998400000, 11.813312],[1411084800000, 12.161559],[1411257600000, 12.016967],[1411344000000, 12.016967],[1411516800000, 11.998006],[1411603200000, 11.523856],[1411689600000, 11.487139],[1411776000000, 11.370328],[1411862400000, 11.370328],[1411948800000, 11.370328],[1412035200000, 11.347573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });