$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1551398400000,26.8592],[1551484800000,26.8622],[1551571200000,26.8622],[1551657600000,26.8622],[1551744000000,26.8271],[1551830400000,26.7624],[1551916800000,26.4811],[1552003200000,26.3892],[1552089600000,26.3892],[1552176000000,26.3892],[1552262400000,26.3892],[1552348800000,26.312],[1552435200000,26.3596],[1552521600000,26.7029],[1552608000000,26.7165],[1552694400000,27.0148],[1552780800000,27.0148],[1552867200000,27.0148],[1552953600000,27.1319],[1553040000000,27.1608],[1553126400000,27.1679],[1553212800000,27.2563],[1553299200000,26.9609],[1553385600000,26.9609],[1553472000000,26.9609],[1553558400000,26.8891],[1553644800000,26.9802],[1553731200000,27.0818],[1553817600000,27.2488],[1553904000000,27.2091],[1553990400000,27.2091]], 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: [[1551398400000, 26.859165],[1551398400000, 26.859165],[1551484800000, 26.862244],[1551571200000, 26.862244],[1551657600000, 26.862244],[1551744000000, 26.827083],[1551830400000, 26.762376],[1551916800000, 26.481142],[1552003200000, 26.389167],[1552089600000, 26.389167],[1552176000000, 26.389167],[1552262400000, 26.389167],[1552348800000, 26.311955],[1552435200000, 26.359553],[1552521600000, 26.702931],[1552608000000, 26.716488],[1552694400000, 27.014849],[1552780800000, 27.014849],[1552867200000, 27.014849],[1552953600000, 27.131890],[1553040000000, 27.160830],[1553126400000, 27.167879],[1553212800000, 27.256311],[1553299200000, 26.960935],[1553385600000, 26.960935],[1553472000000, 26.960935],[1553558400000, 26.889136],[1553644800000, 26.980222],[1553731200000, 27.081767],[1553817600000, 27.248765],[1553904000000, 27.209103],[1553990400000, 27.209103]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });