$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1493596800000,36.4157],[1493683200000,36.4157],[1493769600000,36.4157],[1493856000000,36.3177],[1493942400000,36.2569],[1494028800000,36.336],[1494115200000,36.336],[1494201600000,36.336],[1494288000000,36.336],[1494374400000,36.336],[1494460800000,36.1391],[1494547200000,36.0874],[1494633600000,36.151],[1494720000000,36.151],[1494806400000,36.151],[1494892800000,36.2762],[1494979200000,36.2999],[1495065600000,36.3861],[1495152000000,36.4445],[1495238400000,36.406],[1495324800000,36.406],[1495411200000,36.406],[1495497600000,36.4366],[1495584000000,36.3895],[1495670400000,36.2738],[1495756800000,36.3272],[1495843200000,36.4495],[1495929600000,36.4495],[1496016000000,36.4495],[1496102400000,36.5082],[1496188800000,36.3825]], 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: [[1493596800000, 36.415664],[1493596800000, 36.415664],[1493683200000, 36.415664],[1493769600000, 36.415664],[1493856000000, 36.317738],[1493942400000, 36.256856],[1494028800000, 36.335967],[1494115200000, 36.335967],[1494201600000, 36.335967],[1494288000000, 36.335967],[1494374400000, 36.335967],[1494460800000, 36.139119],[1494547200000, 36.087446],[1494633600000, 36.151042],[1494720000000, 36.151042],[1494806400000, 36.151042],[1494892800000, 36.276209],[1494979200000, 36.299943],[1495065600000, 36.386063],[1495152000000, 36.444459],[1495238400000, 36.405989],[1495324800000, 36.405989],[1495411200000, 36.405989],[1495497600000, 36.436606],[1495584000000, 36.389541],[1495670400000, 36.273758],[1495756800000, 36.327210],[1495843200000, 36.449547],[1495929600000, 36.449547],[1496016000000, 36.449547],[1496102400000, 36.508238],[1496188800000, 36.382482]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });