$(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: [[1470009600000,18.6494],[1470096000000,18.7569],[1470182400000,18.8792],[1470268800000,18.8433],[1470355200000,18.9177],[1470441600000,18.9972],[1470528000000,18.9972],[1470614400000,18.9972],[1470700800000,18.9515],[1470787200000,19.0097],[1470873600000,19.2075],[1470960000000,19.1671],[1471046400000,19.2255],[1471132800000,19.2255],[1471219200000,19.2255],[1471305600000,19.2624],[1471392000000,19.384],[1471478400000,19.1407],[1471564800000,19.2984],[1471651200000,19.2325],[1471737600000,19.2325],[1471824000000,19.2325],[1471910400000,19.2476],[1471996800000,19.3577],[1472083200000,19.3577],[1472169600000,19.27],[1472256000000,19.4465],[1472342400000,19.4465],[1472428800000,19.4465],[1472515200000,19.2501],[1472601600000,19.3741]], 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: [[1470009600000, 18.649379],[1470009600000, 18.649379],[1470096000000, 18.756916],[1470182400000, 18.879242],[1470268800000, 18.843342],[1470355200000, 18.917685],[1470441600000, 18.997172],[1470528000000, 18.997172],[1470614400000, 18.997172],[1470700800000, 18.951470],[1470787200000, 19.009660],[1470873600000, 19.207525],[1470960000000, 19.167124],[1471046400000, 19.225535],[1471132800000, 19.225535],[1471219200000, 19.225535],[1471305600000, 19.262350],[1471392000000, 19.383965],[1471478400000, 19.140713],[1471564800000, 19.298380],[1471651200000, 19.232533],[1471737600000, 19.232533],[1471824000000, 19.232533],[1471910400000, 19.247568],[1471996800000, 19.357715],[1472083200000, 19.357715],[1472169600000, 19.270003],[1472256000000, 19.446497],[1472342400000, 19.446497],[1472428800000, 19.446497],[1472515200000, 19.250076],[1472601600000, 19.374060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });