$(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: [[1519862400000,20.9377],[1519948800000,20.6144],[1520035200000,20.5672],[1520121600000,20.5672],[1520208000000,20.5672],[1520294400000,20.5146],[1520380800000,20.645],[1520467200000,20.3664],[1520553600000,20.3664],[1520640000000,20.3664],[1520726400000,20.3664],[1520812800000,20.3664],[1520899200000,20.3903],[1520985600000,20.4544],[1521072000000,20.5681],[1521158400000,20.6057],[1521244800000,20.4401],[1521331200000,20.4401],[1521417600000,20.4401],[1521504000000,20.3452],[1521590400000,20.2631],[1521676800000,20.1881],[1521763200000,20.2416],[1521849600000,20.295],[1521936000000,20.295],[1522022400000,20.295],[1522108800000,20.343],[1522195200000,20.2593],[1522281600000,20.2933],[1522368000000,20.3943],[1522454400000,20.2126]], 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: [[1519862400000, 20.937684],[1519862400000, 20.937684],[1519948800000, 20.614406],[1520035200000, 20.567205],[1520121600000, 20.567205],[1520208000000, 20.567205],[1520294400000, 20.514569],[1520380800000, 20.645007],[1520467200000, 20.366372],[1520553600000, 20.366372],[1520640000000, 20.366372],[1520726400000, 20.366372],[1520812800000, 20.366372],[1520899200000, 20.390293],[1520985600000, 20.454432],[1521072000000, 20.568070],[1521158400000, 20.605708],[1521244800000, 20.440066],[1521331200000, 20.440066],[1521417600000, 20.440066],[1521504000000, 20.345209],[1521590400000, 20.263118],[1521676800000, 20.188073],[1521763200000, 20.241639],[1521849600000, 20.295005],[1521936000000, 20.295005],[1522022400000, 20.295005],[1522108800000, 20.342958],[1522195200000, 20.259266],[1522281600000, 20.293347],[1522368000000, 20.394261],[1522454400000, 20.212591]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });