$(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: [[1535760000000,32.9096],[1535846400000,32.9096],[1535932800000,32.9096],[1536019200000,32.9444],[1536105600000,32.9436],[1536192000000,32.9063],[1536278400000,32.8365],[1536364800000,32.8298],[1536451200000,32.8298],[1536537600000,32.8298],[1536624000000,32.631],[1536710400000,32.5179],[1536796800000,32.4682],[1536883200000,32.6834],[1536969600000,32.907],[1537056000000,32.907],[1537142400000,32.907],[1537228800000,32.8267],[1537315200000,32.9282],[1537401600000,32.8078],[1537488000000,33.026],[1537574400000,32.9991],[1537660800000,32.9991],[1537747200000,32.9991],[1537833600000,33.0952],[1537920000000,33.0477],[1538006400000,33.0313],[1538092800000,33.1288],[1538179200000,32.7253],[1538265600000,32.7253]], 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: [[1535760000000, 32.909551],[1535760000000, 32.909551],[1535846400000, 32.909551],[1535932800000, 32.909551],[1536019200000, 32.944367],[1536105600000, 32.943599],[1536192000000, 32.906260],[1536278400000, 32.836537],[1536364800000, 32.829771],[1536451200000, 32.829771],[1536537600000, 32.829771],[1536624000000, 32.631016],[1536710400000, 32.517864],[1536796800000, 32.468232],[1536883200000, 32.683386],[1536969600000, 32.906957],[1537056000000, 32.906957],[1537142400000, 32.906957],[1537228800000, 32.826735],[1537315200000, 32.928233],[1537401600000, 32.807843],[1537488000000, 33.025991],[1537574400000, 32.999141],[1537660800000, 32.999141],[1537747200000, 32.999141],[1537833600000, 33.095194],[1537920000000, 33.047686],[1538006400000, 33.031255],[1538092800000, 33.128775],[1538179200000, 32.725272],[1538265600000, 32.725272]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });