$(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: [[1519862400000,20.9766],[1519948800000,20.7356],[1520035200000,20.6022],[1520121600000,20.6022],[1520208000000,20.6022],[1520294400000,20.4798],[1520380800000,20.4475],[1520467200000,20.1799],[1520553600000,20.1799],[1520640000000,20.1799],[1520726400000,20.1799],[1520812800000,20.1799],[1520899200000,20.2081],[1520985600000,20.188],[1521072000000,20.1192],[1521158400000,20.2328],[1521244800000,20.1516],[1521331200000,20.1516],[1521417600000,20.1516],[1521504000000,20.205],[1521590400000,20.1292],[1521676800000,20.2476],[1521763200000,20.3499],[1521849600000,20.4357],[1521936000000,20.4357],[1522022400000,20.4357],[1522108800000,20.4078],[1522195200000,20.413],[1522281600000,20.4941],[1522368000000,20.5752],[1522454400000,20.3919]], 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: [[1519862400000, 20.976587],[1519862400000, 20.976587],[1519948800000, 20.735559],[1520035200000, 20.602223],[1520121600000, 20.602223],[1520208000000, 20.602223],[1520294400000, 20.479764],[1520380800000, 20.447502],[1520467200000, 20.179909],[1520553600000, 20.179909],[1520640000000, 20.179909],[1520726400000, 20.179909],[1520812800000, 20.179909],[1520899200000, 20.208122],[1520985600000, 20.187970],[1521072000000, 20.119233],[1521158400000, 20.232813],[1521244800000, 20.151641],[1521331200000, 20.151641],[1521417600000, 20.151641],[1521504000000, 20.204984],[1521590400000, 20.129210],[1521676800000, 20.247573],[1521763200000, 20.349924],[1521849600000, 20.435694],[1521936000000, 20.435694],[1522022400000, 20.435694],[1522108800000, 20.407813],[1522195200000, 20.412966],[1522281600000, 20.494070],[1522368000000, 20.575173],[1522454400000, 20.391891]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });