$(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: [[1491004800000,20.6615],[1491091200000,20.6615],[1491177600000,20.6615],[1491264000000,20.5616],[1491350400000,20.4723],[1491436800000,20.588],[1491523200000,20.4958],[1491609600000,20.3026],[1491696000000,20.3026],[1491782400000,20.3026],[1491868800000,20.177],[1491955200000,20.1955],[1492041600000,20.124],[1492128000000,20.3583],[1492214400000,20.3188],[1492300800000,20.3188],[1492387200000,20.3188],[1492473600000,20.3188],[1492560000000,20.2584],[1492646400000,20.1537],[1492732800000,20.136],[1492819200000,20.113],[1492905600000,20.113],[1492992000000,20.113],[1493078400000,20.1923],[1493164800000,20.0669],[1493251200000,19.8937],[1493337600000,19.8207],[1493424000000,19.8449],[1493510400000,19.8449]], 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: [[1491004800000, 20.661527],[1491004800000, 20.661527],[1491091200000, 20.661527],[1491177600000, 20.661527],[1491264000000, 20.561638],[1491350400000, 20.472320],[1491436800000, 20.588040],[1491523200000, 20.495787],[1491609600000, 20.302596],[1491696000000, 20.302596],[1491782400000, 20.302596],[1491868800000, 20.177041],[1491955200000, 20.195545],[1492041600000, 20.124020],[1492128000000, 20.358348],[1492214400000, 20.318826],[1492300800000, 20.318826],[1492387200000, 20.318826],[1492473600000, 20.318826],[1492560000000, 20.258414],[1492646400000, 20.153732],[1492732800000, 20.135951],[1492819200000, 20.113038],[1492905600000, 20.113038],[1492992000000, 20.113038],[1493078400000, 20.192342],[1493164800000, 20.066921],[1493251200000, 19.893717],[1493337600000, 19.820689],[1493424000000, 19.844895],[1493510400000, 19.844895]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });