$(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: [[1435708800000,16.1531],[1435795200000,16.1275],[1435881600000,15.9552],[1435968000000,15.8146],[1436054400000,15.8146],[1436140800000,15.8146],[1436227200000,15.9378],[1436313600000,16.1124],[1436400000000,16.2933],[1436486400000,16.3006],[1436572800000,16.3697],[1436659200000,16.3697],[1436745600000,16.3697],[1436832000000,16.3156],[1436918400000,16.363],[1437004800000,16.4969],[1437091200000,16.2393],[1437177600000,16.2942],[1437264000000,16.2942],[1437350400000,16.2942],[1437436800000,16.2615],[1437523200000,16.2286],[1437609600000,16.253],[1437696000000,16.313],[1437782400000,16.0355],[1437868800000,16.0355],[1437955200000,16.0355],[1438041600000,16.0355],[1438128000000,16.1036],[1438214400000,16.1229],[1438300800000,15.7157]], 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: [[1435708800000, 16.153086],[1435708800000, 16.153086],[1435795200000, 16.127455],[1435881600000, 15.955154],[1435968000000, 15.814639],[1436054400000, 15.814639],[1436140800000, 15.814639],[1436227200000, 15.937840],[1436313600000, 16.112408],[1436400000000, 16.293333],[1436486400000, 16.300601],[1436572800000, 16.369674],[1436659200000, 16.369674],[1436745600000, 16.369674],[1436832000000, 16.315551],[1436918400000, 16.363006],[1437004800000, 16.496920],[1437091200000, 16.239334],[1437177600000, 16.294216],[1437264000000, 16.294216],[1437350400000, 16.294216],[1437436800000, 16.261492],[1437523200000, 16.228619],[1437609600000, 16.253021],[1437696000000, 16.313031],[1437782400000, 16.035479],[1437868800000, 16.035479],[1437955200000, 16.035479],[1438041600000, 16.035479],[1438128000000, 16.103552],[1438214400000, 16.122862],[1438300800000, 15.715698]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });