$(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: [[1454284800000,18.135],[1454371200000,18.0126],[1454457600000,18.2555],[1454544000000,18.1452],[1454630400000,18.6642],[1454716800000,18.6278],[1454803200000,18.6278],[1454889600000,18.6278],[1454976000000,18.2669],[1455062400000,18.1255],[1455148800000,18.4263],[1455235200000,18.4774],[1455321600000,18.5405],[1455408000000,18.5405],[1455494400000,18.5405],[1455580800000,19.1901],[1455667200000,19.3337],[1455753600000,19.0412],[1455840000000,18.928],[1455926400000,19.0959],[1456012800000,19.0959],[1456099200000,19.0959],[1456185600000,19.4401],[1456272000000,19.7097],[1456358400000,19.5109],[1456444800000,19.6489],[1456531200000,19.4933],[1456617600000,19.4933],[1456704000000,19.4933]], 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: [[1454284800000, 18.134970],[1454284800000, 18.134970],[1454371200000, 18.012625],[1454457600000, 18.255549],[1454544000000, 18.145204],[1454630400000, 18.664177],[1454716800000, 18.627823],[1454803200000, 18.627823],[1454889600000, 18.627823],[1454976000000, 18.266882],[1455062400000, 18.125524],[1455148800000, 18.426291],[1455235200000, 18.477424],[1455321600000, 18.540486],[1455408000000, 18.540486],[1455494400000, 18.540486],[1455580800000, 19.190101],[1455667200000, 19.333743],[1455753600000, 19.041220],[1455840000000, 18.927956],[1455926400000, 19.095901],[1456012800000, 19.095901],[1456099200000, 19.095901],[1456185600000, 19.440148],[1456272000000, 19.709703],[1456358400000, 19.510920],[1456444800000, 19.648887],[1456531200000, 19.493329],[1456617600000, 19.493329],[1456704000000, 19.493329]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });