$(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: [[1548979200000,4.2687],[1549065600000,4.23639],[1549152000000,4.23639],[1549238400000,4.23639],[1549324800000,4.20425],[1549411200000,4.16459],[1549497600000,4.11548],[1549584000000,4.09794],[1549670400000,4.08939],[1549756800000,4.08939],[1549843200000,4.08939],[1549929600000,4.09979],[1550016000000,4.08824],[1550102400000,4.10469],[1550188800000,4.10157],[1550275200000,4.11209],[1550361600000,4.11209],[1550448000000,4.11209],[1550534400000,4.12707],[1550620800000,4.11282],[1550707200000,4.11755],[1550793600000,4.10871],[1550880000000,4.10039],[1550966400000,4.10039],[1551052800000,4.10039],[1551139200000,4.10747],[1551225600000,4.10836],[1551312000000,4.11923]], 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: [[1548979200000, 4.268697],[1548979200000, 4.268697],[1549065600000, 4.236391],[1549152000000, 4.236391],[1549238400000, 4.236391],[1549324800000, 4.204251],[1549411200000, 4.164591],[1549497600000, 4.115480],[1549584000000, 4.097940],[1549670400000, 4.089387],[1549756800000, 4.089387],[1549843200000, 4.089387],[1549929600000, 4.099786],[1550016000000, 4.088239],[1550102400000, 4.104693],[1550188800000, 4.101567],[1550275200000, 4.112090],[1550361600000, 4.112090],[1550448000000, 4.112090],[1550534400000, 4.127071],[1550620800000, 4.112822],[1550707200000, 4.117554],[1550793600000, 4.108710],[1550880000000, 4.100389],[1550966400000, 4.100389],[1551052800000, 4.100389],[1551139200000, 4.107470],[1551225600000, 4.108363],[1551312000000, 4.119227]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });