$(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: [[1551398400000,30.6624],[1551484800000,30.5773],[1551571200000,30.5773],[1551657600000,30.5773],[1551744000000,30.4139],[1551830400000,30.3191],[1551916800000,29.9369],[1552003200000,29.7432],[1552089600000,29.7432],[1552176000000,29.7432],[1552262400000,29.7432],[1552348800000,29.5852],[1552435200000,29.7204],[1552521600000,30.1823],[1552608000000,30.1763],[1552694400000,30.5484],[1552780800000,30.5484],[1552867200000,30.5484],[1552953600000,30.792],[1553040000000,30.8493],[1553126400000,30.8464],[1553212800000,31.0368],[1553299200000,30.4712],[1553385600000,30.4712],[1553472000000,30.4712],[1553558400000,30.4519],[1553644800000,30.4634],[1553731200000,30.4968],[1553817600000,30.5677],[1553904000000,30.5694],[1553990400000,30.5694]], 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, 30.662423],[1551398400000, 30.662423],[1551484800000, 30.577292],[1551571200000, 30.577292],[1551657600000, 30.577292],[1551744000000, 30.413864],[1551830400000, 30.319096],[1551916800000, 29.936931],[1552003200000, 29.743230],[1552089600000, 29.743230],[1552176000000, 29.743230],[1552262400000, 29.743230],[1552348800000, 29.585162],[1552435200000, 29.720396],[1552521600000, 30.182323],[1552608000000, 30.176273],[1552694400000, 30.548391],[1552780800000, 30.548391],[1552867200000, 30.548391],[1552953600000, 30.791982],[1553040000000, 30.849271],[1553126400000, 30.846410],[1553212800000, 31.036761],[1553299200000, 30.471249],[1553385600000, 30.471249],[1553472000000, 30.471249],[1553558400000, 30.451947],[1553644800000, 30.463369],[1553731200000, 30.496778],[1553817600000, 30.567665],[1553904000000, 30.569427],[1553990400000, 30.569427]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });