$(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: [[1530403200000,19.448],[1530489600000,19.448],[1530576000000,19.2937],[1530662400000,19.4646],[1530748800000,19.5262],[1530835200000,19.5605],[1530921600000,19.516],[1531008000000,19.516],[1531094400000,19.516],[1531180800000,19.6419],[1531267200000,19.5049],[1531353600000,19.3948],[1531440000000,19.3793],[1531526400000,19.3754],[1531612800000,19.3754],[1531699200000,19.3754],[1531785600000,19.4728],[1531872000000,19.4166],[1531958400000,19.337],[1532044800000,19.4104],[1532131200000,19.5111],[1532217600000,19.5111],[1532304000000,19.5111],[1532390400000,19.5869],[1532476800000,19.6989],[1532563200000,19.743],[1532649600000,19.7725],[1532736000000,19.7337],[1532822400000,19.7337],[1532908800000,19.7337],[1532995200000,19.7916]], 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: [[1530403200000, 19.448024],[1530403200000, 19.448024],[1530489600000, 19.448024],[1530576000000, 19.293668],[1530662400000, 19.464555],[1530748800000, 19.526169],[1530835200000, 19.560476],[1530921600000, 19.515984],[1531008000000, 19.515984],[1531094400000, 19.515984],[1531180800000, 19.641914],[1531267200000, 19.504926],[1531353600000, 19.394848],[1531440000000, 19.379297],[1531526400000, 19.375377],[1531612800000, 19.375377],[1531699200000, 19.375377],[1531785600000, 19.472779],[1531872000000, 19.416562],[1531958400000, 19.336967],[1532044800000, 19.410437],[1532131200000, 19.511065],[1532217600000, 19.511065],[1532304000000, 19.511065],[1532390400000, 19.586909],[1532476800000, 19.698856],[1532563200000, 19.743004],[1532649600000, 19.772539],[1532736000000, 19.733746],[1532822400000, 19.733746],[1532908800000, 19.733746],[1532995200000, 19.791575]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });