$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1522540800000,0.103844],[1522627200000,0.103844],[1522713600000,0.103268],[1522800000000,0.103787],[1522886400000,0.103444],[1522972800000,0.102771],[1523059200000,0.101873],[1523145600000,0.101873],[1523232000000,0.101873],[1523318400000,0.101873],[1523404800000,0.102971],[1523491200000,0.102992],[1523577600000,0.102835],[1523664000000,0.103423],[1523750400000,0.103423],[1523836800000,0.103423],[1523923200000,0.104004],[1524009600000,0.103689],[1524096000000,0.104436],[1524182400000,0.104627],[1524268800000,0.103771],[1524355200000,0.103771],[1524441600000,0.103771],[1524528000000,0.10268],[1524614400000,0.102197],[1524700800000,0.102205],[1524787200000,0.102036],[1524873600000,0.101068],[1524960000000,0.101068],[1525046400000,0.101068]], 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, 0.103844],[1522540800000, 0.103844],[1522627200000, 0.103844],[1522713600000, 0.103268],[1522800000000, 0.103787],[1522886400000, 0.103444],[1522972800000, 0.102771],[1523059200000, 0.101873],[1523145600000, 0.101873],[1523232000000, 0.101873],[1523318400000, 0.101873],[1523404800000, 0.102971],[1523491200000, 0.102992],[1523577600000, 0.102835],[1523664000000, 0.103423],[1523750400000, 0.103423],[1523836800000, 0.103423],[1523923200000, 0.104004],[1524009600000, 0.103689],[1524096000000, 0.104436],[1524182400000, 0.104627],[1524268800000, 0.103771],[1524355200000, 0.103771],[1524441600000, 0.103771],[1524528000000, 0.102680],[1524614400000, 0.102197],[1524700800000, 0.102205],[1524787200000, 0.102036],[1524873600000, 0.101068],[1524960000000, 0.101068],[1525046400000, 0.101068]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });