$(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: [[1556668800000,26.4927],[1556755200000,26.4927],[1556841600000,26.5572],[1556928000000,26.4805],[1557014400000,26.4805],[1557100800000,26.4805],[1557187200000,26.4959],[1557273600000,26.34],[1557360000000,26.2495],[1557446400000,26.2495],[1557532800000,26.2059],[1557619200000,26.2059],[1557705600000,26.2059],[1557792000000,26.1132],[1557878400000,26.1629],[1557964800000,26.374],[1558051200000,26.3429],[1558137600000,26.3682],[1558224000000,26.3682],[1558310400000,26.3682],[1558396800000,26.2029],[1558483200000,26.1125],[1558569600000,26.3047],[1558656000000,26.3357],[1558742400000,26.4748],[1558828800000,26.4748],[1558915200000,26.4748],[1559001600000,26.3257],[1559088000000,26.4062],[1559174400000,26.6834],[1559260800000,26.8726]], 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: [[1556668800000, 26.492737],[1556668800000, 26.492737],[1556755200000, 26.492737],[1556841600000, 26.557242],[1556928000000, 26.480461],[1557014400000, 26.480461],[1557100800000, 26.480461],[1557187200000, 26.495920],[1557273600000, 26.340020],[1557360000000, 26.249550],[1557446400000, 26.249550],[1557532800000, 26.205887],[1557619200000, 26.205887],[1557705600000, 26.205887],[1557792000000, 26.113216],[1557878400000, 26.162875],[1557964800000, 26.374033],[1558051200000, 26.342913],[1558137600000, 26.368202],[1558224000000, 26.368202],[1558310400000, 26.368202],[1558396800000, 26.202895],[1558483200000, 26.112451],[1558569600000, 26.304698],[1558656000000, 26.335723],[1558742400000, 26.474780],[1558828800000, 26.474780],[1558915200000, 26.474780],[1559001600000, 26.325682],[1559088000000, 26.406167],[1559174400000, 26.683376],[1559260800000, 26.872573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });