$(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: [[1535760000000,20.404],[1535846400000,20.404],[1535932800000,20.404],[1536019200000,20.4509],[1536105600000,20.4733],[1536192000000,20.383],[1536278400000,20.3146],[1536364800000,20.2416],[1536451200000,20.2416],[1536537600000,20.2416],[1536624000000,20.072],[1536710400000,19.9374],[1536796800000,19.9583],[1536883200000,20.2161],[1536969600000,20.238],[1537056000000,20.238],[1537142400000,20.238],[1537228800000,20.1911],[1537315200000,20.271],[1537401600000,20.3662],[1537488000000,20.4394],[1537574400000,20.4278],[1537660800000,20.4278],[1537747200000,20.4278],[1537833600000,20.4455],[1537920000000,20.3571],[1538006400000,20.3871],[1538092800000,20.4499],[1538179200000,20.3921],[1538265600000,20.3921]], 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: [[1535760000000, 20.403962],[1535760000000, 20.403962],[1535846400000, 20.403962],[1535932800000, 20.403962],[1536019200000, 20.450908],[1536105600000, 20.473307],[1536192000000, 20.382966],[1536278400000, 20.314611],[1536364800000, 20.241551],[1536451200000, 20.241551],[1536537600000, 20.241551],[1536624000000, 20.071979],[1536710400000, 19.937378],[1536796800000, 19.958343],[1536883200000, 20.216110],[1536969600000, 20.237981],[1537056000000, 20.237981],[1537142400000, 20.237981],[1537228800000, 20.191127],[1537315200000, 20.271013],[1537401600000, 20.366158],[1537488000000, 20.439405],[1537574400000, 20.427845],[1537660800000, 20.427845],[1537747200000, 20.427845],[1537833600000, 20.445539],[1537920000000, 20.357081],[1538006400000, 20.387147],[1538092800000, 20.449861],[1538179200000, 20.392119],[1538265600000, 20.392119]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });