$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1522540800000,4.34898],[1522627200000,4.34898],[1522713600000,4.32482],[1522800000000,4.35032],[1522886400000,4.32765],[1522972800000,4.29122],[1523059200000,4.2755],[1523145600000,4.2755],[1523232000000,4.2755],[1523318400000,4.2755],[1523404800000,4.3117],[1523491200000,4.31257],[1523577600000,4.30122],[1523664000000,4.32111],[1523750400000,4.32111],[1523836800000,4.32111],[1523923200000,4.33344],[1524009600000,4.32777],[1524096000000,4.34919],[1524182400000,4.36008],[1524268800000,4.32658],[1524355200000,4.32658],[1524441600000,4.32658],[1524528000000,4.29293],[1524614400000,4.29258],[1524700800000,4.29737],[1524787200000,4.28361],[1524873600000,4.24399],[1524960000000,4.24399],[1525046400000,4.24399]], 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, 4.348975],[1522540800000, 4.348975],[1522627200000, 4.348975],[1522713600000, 4.324825],[1522800000000, 4.350324],[1522886400000, 4.327646],[1522972800000, 4.291220],[1523059200000, 4.275505],[1523145600000, 4.275505],[1523232000000, 4.275505],[1523318400000, 4.275505],[1523404800000, 4.311697],[1523491200000, 4.312570],[1523577600000, 4.301215],[1523664000000, 4.321115],[1523750400000, 4.321115],[1523836800000, 4.321115],[1523923200000, 4.333441],[1524009600000, 4.327766],[1524096000000, 4.349185],[1524182400000, 4.360078],[1524268800000, 4.326579],[1524355200000, 4.326579],[1524441600000, 4.326579],[1524528000000, 4.292930],[1524614400000, 4.292582],[1524700800000, 4.297367],[1524787200000, 4.283606],[1524873600000, 4.243990],[1524960000000, 4.243990],[1525046400000, 4.243990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });