$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1522540800000,27.5175],[1522627200000,27.5175],[1522713600000,27.3647],[1522800000000,27.5214],[1522886400000,27.3782],[1522972800000,27.0919],[1523059200000,26.9888],[1523145600000,26.9888],[1523232000000,26.9888],[1523318400000,26.9888],[1523404800000,27.2289],[1523491200000,27.0828],[1523577600000,26.9644],[1523664000000,27.1453],[1523750400000,27.1453],[1523836800000,27.1453],[1523923200000,27.1699],[1524009600000,27.0663],[1524096000000,27.0405],[1524182400000,27.1151],[1524268800000,26.9199],[1524355200000,26.9199],[1524441600000,26.9199],[1524528000000,26.7754],[1524614400000,26.7668],[1524700800000,26.7067],[1524787200000,26.6506],[1524873600000,26.4366],[1524960000000,26.4366],[1525046400000,26.4366]], 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: [[1522540800000, 27.517541],[1522540800000, 27.517541],[1522627200000, 27.517541],[1522713600000, 27.364733],[1522800000000, 27.521386],[1522886400000, 27.378166],[1522972800000, 27.091874],[1523059200000, 26.988805],[1523145600000, 26.988805],[1523232000000, 26.988805],[1523318400000, 26.988805],[1523404800000, 27.228925],[1523491200000, 27.082792],[1523577600000, 26.964449],[1523664000000, 27.145310],[1523750400000, 27.145310],[1523836800000, 27.145310],[1523923200000, 27.169926],[1524009600000, 27.066347],[1524096000000, 27.040538],[1524182400000, 27.115053],[1524268800000, 26.919850],[1524355200000, 26.919850],[1524441600000, 26.919850],[1524528000000, 26.775356],[1524614400000, 26.766822],[1524700800000, 26.706707],[1524787200000, 26.650569],[1524873600000, 26.436578],[1524960000000, 26.436578],[1525046400000, 26.436578]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });