$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1551398400000,37.5485],[1551484800000,37.4589],[1551571200000,37.4589],[1551657600000,37.4589],[1551744000000,37.3508],[1551830400000,37.2566],[1551916800000,36.8176],[1552003200000,36.7021],[1552089600000,36.7021],[1552176000000,36.7021],[1552262400000,36.7021],[1552348800000,36.5064],[1552435200000,36.5936],[1552521600000,37.1435],[1552608000000,37.1617],[1552694400000,37.6143],[1552780800000,37.6143],[1552867200000,37.6143],[1552953600000,37.8196],[1553040000000,37.8658],[1553126400000,37.8728],[1553212800000,38.0386],[1553299200000,37.5213],[1553385600000,37.5213],[1553472000000,37.5213],[1553558400000,37.4477],[1553644800000,37.5798],[1553731200000,37.6793],[1553817600000,37.8237],[1553904000000,37.7731],[1553990400000,37.7731]], 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, 37.548461],[1551398400000, 37.548461],[1551484800000, 37.458924],[1551571200000, 37.458924],[1551657600000, 37.458924],[1551744000000, 37.350776],[1551830400000, 37.256588],[1551916800000, 36.817613],[1552003200000, 36.702086],[1552089600000, 36.702086],[1552176000000, 36.702086],[1552262400000, 36.702086],[1552348800000, 36.506354],[1552435200000, 36.593566],[1552521600000, 37.143532],[1552608000000, 37.161718],[1552694400000, 37.614346],[1552780800000, 37.614346],[1552867200000, 37.614346],[1552953600000, 37.819646],[1553040000000, 37.865792],[1553126400000, 37.872769],[1553212800000, 38.038573],[1553299200000, 37.521307],[1553385600000, 37.521307],[1553472000000, 37.521307],[1553558400000, 37.447651],[1553644800000, 37.579842],[1553731200000, 37.679295],[1553817600000, 37.823653],[1553904000000, 37.773056],[1553990400000, 37.773056]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });