$(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: [[1485907200000,20.5128],[1485993600000,20.4791],[1486080000000,20.745],[1486166400000,20.6904],[1486252800000,20.6904],[1486339200000,20.6904],[1486425600000,20.8509],[1486512000000,20.5912],[1486598400000,20.5603],[1486684800000,20.6912],[1486771200000,20.7969],[1486857600000,20.7969],[1486944000000,20.7969],[1487030400000,20.8219],[1487116800000,20.9418],[1487203200000,20.7047],[1487289600000,20.8201],[1487376000000,20.719],[1487462400000,20.719],[1487548800000,20.719],[1487635200000,20.7373],[1487721600000,20.7054],[1487808000000,20.7149],[1487894400000,20.7786],[1487980800000,20.7147],[1488067200000,20.7147],[1488153600000,20.7147],[1488240000000,20.7609]], 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: [[1485907200000, 20.512776],[1485907200000, 20.512776],[1485993600000, 20.479068],[1486080000000, 20.745040],[1486166400000, 20.690370],[1486252800000, 20.690370],[1486339200000, 20.690370],[1486425600000, 20.850949],[1486512000000, 20.591228],[1486598400000, 20.560301],[1486684800000, 20.691216],[1486771200000, 20.796938],[1486857600000, 20.796938],[1486944000000, 20.796938],[1487030400000, 20.821948],[1487116800000, 20.941808],[1487203200000, 20.704707],[1487289600000, 20.820065],[1487376000000, 20.719002],[1487462400000, 20.719002],[1487548800000, 20.719002],[1487635200000, 20.737302],[1487721600000, 20.705363],[1487808000000, 20.714865],[1487894400000, 20.778626],[1487980800000, 20.714709],[1488067200000, 20.714709],[1488153600000, 20.714709],[1488240000000, 20.760889]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });