$(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: [[1422748800000,12.5783],[1422835200000,12.5783],[1422921600000,12.5588],[1423008000000,12.6483],[1423094400000,12.8595],[1423180800000,13.9944],[1423267200000,null],[1423353600000,18.0569],[1423440000000,18.0569],[1423526400000,19.6043],[1423612800000,19.4093],[1423699200000,19.8822],[1423785600000,19.4421],[1423872000000,19.8906],[1423958400000,19.8906],[1424044800000,19.8906],[1424131200000,20.1834],[1424217600000,20.499],[1424304000000,20.9634],[1424390400000,21.3122],[1424476800000,21.6802],[1424563200000,21.6802],[1424649600000,21.6802],[1424736000000,22.243],[1424822400000,22.0285],[1424908800000,21.7472],[1424995200000,23.6652],[1425081600000,21.8845]], 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: [[1422748800000, 12.578307],[1422748800000, 12.578307],[1422835200000, 12.578307],[1422921600000, 12.558775],[1423008000000, 12.648267],[1423094400000, 12.859538],[1423180800000, 13.994382],[1423353600000, 18.056918],[1423440000000, 18.056918],[1423526400000, 19.604282],[1423612800000, 19.409326],[1423699200000, 19.882212],[1423785600000, 19.442126],[1423872000000, 19.890592],[1423958400000, 19.890592],[1424044800000, 19.890592],[1424131200000, 20.183391],[1424217600000, 20.499025],[1424304000000, 20.963358],[1424390400000, 21.312172],[1424476800000, 21.680199],[1424563200000, 21.680199],[1424649600000, 21.680199],[1424736000000, 22.242965],[1424822400000, 22.028545],[1424908800000, 21.747241],[1424995200000, 23.665238],[1425081600000, 21.884463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });