$(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: [[1535760000000,28.2461],[1535846400000,28.2461],[1535932800000,28.2461],[1536019200000,28.3783],[1536105600000,28.493],[1536192000000,28.4116],[1536278400000,28.2246],[1536364800000,28.265],[1536451200000,28.265],[1536537600000,28.265],[1536624000000,28.2007],[1536710400000,28.0956],[1536796800000,28.0261],[1536883200000,28.1268],[1536969600000,28.1521],[1537056000000,28.1521],[1537142400000,28.1521],[1537228800000,28.1268],[1537315200000,28.151],[1537401600000,28.1202],[1537488000000,28.0618],[1537574400000,28.0629],[1537660800000,28.0629],[1537747200000,28.0629],[1537833600000,28.1111],[1537920000000,28.0612],[1538006400000,28.1428],[1538092800000,28.2983],[1538179200000,28.2699],[1538265600000,28.2699]], 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, 28.246117],[1535760000000, 28.246117],[1535846400000, 28.246117],[1535932800000, 28.246117],[1536019200000, 28.378299],[1536105600000, 28.492993],[1536192000000, 28.411552],[1536278400000, 28.224632],[1536364800000, 28.264977],[1536451200000, 28.264977],[1536537600000, 28.264977],[1536624000000, 28.200688],[1536710400000, 28.095614],[1536796800000, 28.026096],[1536883200000, 28.126838],[1536969600000, 28.152072],[1537056000000, 28.152072],[1537142400000, 28.152072],[1537228800000, 28.126754],[1537315200000, 28.151007],[1537401600000, 28.120205],[1537488000000, 28.061850],[1537574400000, 28.062880],[1537660800000, 28.062880],[1537747200000, 28.062880],[1537833600000, 28.111097],[1537920000000, 28.061209],[1538006400000, 28.142843],[1538092800000, 28.298262],[1538179200000, 28.269931],[1538265600000, 28.269931]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });