$(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: [[1451606400000,17.4937],[1451692800000,17.4937],[1451779200000,17.4937],[1451865600000,17.4937],[1451952000000,17.4937],[1452038400000,17.0591],[1452124800000,16.6238],[1452211200000,16.6238],[1452297600000,16.6238],[1452384000000,16.6238],[1452470400000,16.6238],[1452556800000,16.4937],[1452643200000,16.3078],[1452729600000,16.5906],[1452816000000,16.6229],[1452902400000,16.6078],[1452988800000,16.7421],[1453075200000,16.7421],[1453161600000,16.9733],[1453248000000,17.2276],[1453334400000,16.8998],[1453420800000,16.9543],[1453507200000,17.4222],[1453593600000,17.4222],[1453680000000,17.4222],[1453766400000,17.3293],[1453852800000,17.3176],[1453939200000,17.5144],[1454025600000,17.7852],[1454112000000,18.135],[1454198400000,18.135]], 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: [[1451606400000, 17.493748],[1451606400000, 17.493748],[1451692800000, 17.493748],[1451779200000, 17.493748],[1451865600000, 17.493748],[1451952000000, 17.493748],[1452038400000, 17.059107],[1452124800000, 16.623821],[1452211200000, 16.623821],[1452297600000, 16.623821],[1452384000000, 16.623821],[1452470400000, 16.623821],[1452556800000, 16.493653],[1452643200000, 16.307800],[1452729600000, 16.590634],[1452816000000, 16.622859],[1452902400000, 16.607818],[1452988800000, 16.742097],[1453075200000, 16.742097],[1453161600000, 16.973276],[1453248000000, 17.227567],[1453334400000, 16.899849],[1453420800000, 16.954317],[1453507200000, 17.422218],[1453593600000, 17.422218],[1453680000000, 17.422218],[1453766400000, 17.329277],[1453852800000, 17.317565],[1453939200000, 17.514373],[1454025600000, 17.785183],[1454112000000, 18.134970],[1454198400000, 18.134970]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });