$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1530403200000,19.8032],[1530489600000,19.8032],[1530576000000,19.9011],[1530662400000,19.9935],[1530748800000,20.1092],[1530835200000,20.1292],[1530921600000,20.0382],[1531008000000,20.0382],[1531094400000,20.0382],[1531180800000,20.0751],[1531267200000,19.9576],[1531353600000,19.9583],[1531440000000,19.895],[1531526400000,19.8876],[1531612800000,19.8876],[1531699200000,19.8876],[1531785600000,19.9457],[1531872000000,19.9296],[1531958400000,19.8459],[1532044800000,19.9832],[1532131200000,19.9849],[1532217600000,19.9849],[1532304000000,19.9849],[1532390400000,20.1394],[1532476800000,20.2159],[1532563200000,20.29],[1532649600000,20.4257],[1532736000000,20.4767],[1532822400000,20.4767],[1532908800000,20.4767],[1532995200000,20.5056]], 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.803158],[1530403200000, 19.803158],[1530489600000, 19.803158],[1530576000000, 19.901076],[1530662400000, 19.993539],[1530748800000, 20.109173],[1530835200000, 20.129198],[1530921600000, 20.038202],[1531008000000, 20.038202],[1531094400000, 20.038202],[1531180800000, 20.075144],[1531267200000, 19.957615],[1531353600000, 19.958293],[1531440000000, 19.895019],[1531526400000, 19.887579],[1531612800000, 19.887579],[1531699200000, 19.887579],[1531785600000, 19.945720],[1531872000000, 19.929614],[1531958400000, 19.845868],[1532044800000, 19.983229],[1532131200000, 19.984850],[1532217600000, 19.984850],[1532304000000, 19.984850],[1532390400000, 20.139370],[1532476800000, 20.215867],[1532563200000, 20.289955],[1532649600000, 20.425717],[1532736000000, 20.476700],[1532822400000, 20.476700],[1532908800000, 20.476700],[1532995200000, 20.505603]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });