$(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: [[1559347200000,0.41073],[1559433600000,0.41073],[1559520000000,0.41073],[1559606400000,0.41118],[1559692800000,0.41753],[1559779200000,0.41352],[1559865600000,0.41075],[1559952000000,0.40892],[1560038400000,0.40892],[1560124800000,0.40892],[1560211200000,0.40707],[1560297600000,0.40764],[1560384000000,0.40923],[1560470400000,0.40873],[1560556800000,0.41007],[1560643200000,0.41007],[1560729600000,0.41007],[1560816000000,0.41007],[1560902400000,0.41017],[1560988800000,0.41161],[1561075200000,0.4161],[1561161600000,0.41607],[1561248000000,0.41607],[1561334400000,0.41607],[1561420800000,0.41633],[1561507200000,0.4189],[1561593600000,0.41661],[1561680000000,0.41522],[1561766400000,0.41522],[1561852800000,0.41522]], 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: [[1559347200000, 0.410730],[1559347200000, 0.410730],[1559433600000, 0.410730],[1559520000000, 0.410730],[1559606400000, 0.411180],[1559692800000, 0.417530],[1559779200000, 0.413520],[1559865600000, 0.410750],[1559952000000, 0.408920],[1560038400000, 0.408920],[1560124800000, 0.408920],[1560211200000, 0.407070],[1560297600000, 0.407640],[1560384000000, 0.409230],[1560470400000, 0.408730],[1560556800000, 0.410070],[1560643200000, 0.410070],[1560729600000, 0.410070],[1560816000000, 0.410070],[1560902400000, 0.410170],[1560988800000, 0.411610],[1561075200000, 0.416100],[1561161600000, 0.416070],[1561248000000, 0.416070],[1561334400000, 0.416070],[1561420800000, 0.416330],[1561507200000, 0.418900],[1561593600000, 0.416610],[1561680000000, 0.415220],[1561766400000, 0.415220],[1561852800000, 0.415220]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });