$(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: [[1417392000000,12.8308],[1417478400000,12.8319],[1417564800000,12.83],[1417651200000,12.817],[1417737600000,12.9017],[1417824000000,12.9172],[1417910400000,12.9172],[1417996800000,12.9172],[1418083200000,12.9989],[1418169600000,12.9116],[1418256000000,12.9865],[1418342400000,13.0817],[1418428800000,12.9684],[1418515200000,12.9684],[1418601600000,12.9684],[1418688000000,13.0325],[1418774400000,12.9565],[1418860800000,13.0093],[1418947200000,null],[1419033600000,12.9108],[1419120000000,12.9108],[1419206400000,12.9108],[1419292800000,12.968],[1419379200000,12.7513],[1419465600000,12.8171],[1419552000000,12.8017],[1419638400000,12.8001],[1419724800000,12.8001],[1419811200000,12.8001],[1419897600000,12.8528],[1419984000000,12.8528]], 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: [[1417392000000, 12.830802],[1417392000000, 12.830802],[1417478400000, 12.831925],[1417564800000, 12.830001],[1417651200000, 12.816996],[1417737600000, 12.901715],[1417824000000, 12.917248],[1417910400000, 12.917248],[1417996800000, 12.917248],[1418083200000, 12.998905],[1418169600000, 12.911570],[1418256000000, 12.986495],[1418342400000, 13.081719],[1418428800000, 12.968424],[1418515200000, 12.968424],[1418601600000, 12.968424],[1418688000000, 13.032463],[1418774400000, 12.956540],[1418860800000, 13.009349],[1419033600000, 12.910810],[1419120000000, 12.910810],[1419206400000, 12.910810],[1419292800000, 12.968034],[1419379200000, 12.751341],[1419465600000, 12.817060],[1419552000000, 12.801718],[1419638400000, 12.800090],[1419724800000, 12.800090],[1419811200000, 12.800090],[1419897600000, 12.852785],[1419984000000, 12.852785]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });