$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1535760000000,0.41511],[1535846400000,0.41511],[1535932800000,0.41511],[1536019200000,0.4189],[1536105600000,0.41733],[1536192000000,0.41499],[1536278400000,0.41354],[1536364800000,0.40947],[1536451200000,0.40947],[1536537600000,0.40947],[1536624000000,0.40363],[1536710400000,0.40151],[1536796800000,0.40283],[1536883200000,0.40979],[1536969600000,0.41229],[1537056000000,0.41229],[1537142400000,0.41229],[1537228800000,0.41244],[1537315200000,0.4155],[1537401600000,0.41964],[1537488000000,0.42216],[1537574400000,0.42359],[1537660800000,0.42359],[1537747200000,0.42359],[1537833600000,0.4249],[1537920000000,0.4263],[1538006400000,0.42797],[1538092800000,0.42983],[1538179200000,0.43101],[1538265600000,0.43101]], 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, 0.415110],[1535760000000, 0.415110],[1535846400000, 0.415110],[1535932800000, 0.415110],[1536019200000, 0.418900],[1536105600000, 0.417330],[1536192000000, 0.414990],[1536278400000, 0.413540],[1536364800000, 0.409470],[1536451200000, 0.409470],[1536537600000, 0.409470],[1536624000000, 0.403630],[1536710400000, 0.401510],[1536796800000, 0.402830],[1536883200000, 0.409790],[1536969600000, 0.412290],[1537056000000, 0.412290],[1537142400000, 0.412290],[1537228800000, 0.412440],[1537315200000, 0.415500],[1537401600000, 0.419640],[1537488000000, 0.422160],[1537574400000, 0.423590],[1537660800000, 0.423590],[1537747200000, 0.423590],[1537833600000, 0.424900],[1537920000000, 0.426300],[1538006400000, 0.427970],[1538092800000, 0.429830],[1538179200000, 0.431010],[1538265600000, 0.431010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });