$(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: [[1235865600000,4.89462],[1235952000000,4.89462],[1236038400000,4.88143],[1236124800000,4.95109],[1236211200000,4.93988],[1236297600000,4.93912],[1236384000000,4.92679],[1236470400000,4.92679],[1236556800000,4.92679],[1236643200000,4.92679],[1236729600000,null],[1236816000000,5.00851],[1236902400000,4.97455],[1236988800000,5.07319],[1237075200000,5.07319],[1237161600000,5.07319],[1237248000000,5.10307],[1237334400000,5.07814],[1237420800000,5.09582],[1237507200000,5.3243],[1237593600000,5.29984],[1237680000000,5.29984],[1237766400000,5.29984],[1237852800000,5.36054],[1237939200000,5.37738],[1238025600000,5.38083],[1238112000000,5.41495],[1238198400000,5.32353],[1238284800000,5.32353],[1238371200000,5.32353],[1238457600000,5.24018]], 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: [[1235865600000, 4.894616],[1235865600000, 4.894616],[1235952000000, 4.894616],[1236038400000, 4.881433],[1236124800000, 4.951093],[1236211200000, 4.939882],[1236297600000, 4.939125],[1236384000000, 4.926786],[1236470400000, 4.926786],[1236556800000, 4.926786],[1236643200000, 4.926786],[1236816000000, 5.008506],[1236902400000, 4.974546],[1236988800000, 5.073186],[1237075200000, 5.073186],[1237161600000, 5.073186],[1237248000000, 5.103074],[1237334400000, 5.078139],[1237420800000, 5.095817],[1237507200000, 5.324298],[1237593600000, 5.299837],[1237680000000, 5.299837],[1237766400000, 5.299837],[1237852800000, 5.360544],[1237939200000, 5.377380],[1238025600000, 5.380829],[1238112000000, 5.414952],[1238198400000, 5.323531],[1238284800000, 5.323531],[1238371200000, 5.323531],[1238457600000, 5.240178]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });