$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1530403200000,30.582],[1530489600000,30.582],[1530576000000,30.5322],[1530662400000,30.6781],[1530748800000,30.7791],[1530835200000,30.9466],[1530921600000,30.8528],[1531008000000,30.8528],[1531094400000,30.8528],[1531180800000,30.9458],[1531267200000,30.6988],[1531353600000,30.7777],[1531440000000,30.5767],[1531526400000,30.5433],[1531612800000,30.5433],[1531699200000,30.5433],[1531785600000,30.7144],[1531872000000,30.6976],[1531958400000,30.5408],[1532044800000,30.6763],[1532131200000,30.8626],[1532217600000,30.8626],[1532304000000,30.8626],[1532390400000,30.9884],[1532476800000,31.1183],[1532563200000,31.1268],[1532649600000,31.2248],[1532736000000,31.1103],[1532822400000,31.1103],[1532908800000,31.1103],[1532995200000,31.2608]], 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, 30.582017],[1530403200000, 30.582017],[1530489600000, 30.582017],[1530576000000, 30.532230],[1530662400000, 30.678086],[1530748800000, 30.779100],[1530835200000, 30.946629],[1530921600000, 30.852820],[1531008000000, 30.852820],[1531094400000, 30.852820],[1531180800000, 30.945835],[1531267200000, 30.698803],[1531353600000, 30.777684],[1531440000000, 30.576655],[1531526400000, 30.543344],[1531612800000, 30.543344],[1531699200000, 30.543344],[1531785600000, 30.714414],[1531872000000, 30.697584],[1531958400000, 30.540806],[1532044800000, 30.676255],[1532131200000, 30.862603],[1532217600000, 30.862603],[1532304000000, 30.862603],[1532390400000, 30.988449],[1532476800000, 31.118283],[1532563200000, 31.126820],[1532649600000, 31.224794],[1532736000000, 31.110251],[1532822400000, 31.110251],[1532908800000, 31.110251],[1532995200000, 31.260792]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });