$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1493596800000,19.4657],[1493683200000,19.4657],[1493769600000,19.4657],[1493856000000,19.3202],[1493942400000,19.2812],[1494028800000,19.2506],[1494115200000,19.2506],[1494201600000,19.2506],[1494288000000,19.2506],[1494374400000,19.2506],[1494460800000,19.3152],[1494547200000,19.2552],[1494633600000,19.2714],[1494720000000,19.2714],[1494806400000,19.2714],[1494892800000,19.4528],[1494979200000,19.4134],[1495065600000,19.4029],[1495152000000,19.3462],[1495238400000,19.4335],[1495324800000,19.4335],[1495411200000,19.4335],[1495497600000,19.5177],[1495584000000,19.5316],[1495670400000,19.4584],[1495756800000,19.5623],[1495843200000,19.5638],[1495929600000,19.5638],[1496016000000,19.5638],[1496102400000,19.6125],[1496188800000,19.5667]], 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, 19.465667],[1493596800000, 19.465667],[1493683200000, 19.465667],[1493769600000, 19.465667],[1493856000000, 19.320165],[1493942400000, 19.281152],[1494028800000, 19.250622],[1494115200000, 19.250622],[1494201600000, 19.250622],[1494288000000, 19.250622],[1494374400000, 19.250622],[1494460800000, 19.315173],[1494547200000, 19.255211],[1494633600000, 19.271442],[1494720000000, 19.271442],[1494806400000, 19.271442],[1494892800000, 19.452830],[1494979200000, 19.413400],[1495065600000, 19.402930],[1495152000000, 19.346151],[1495238400000, 19.433477],[1495324800000, 19.433477],[1495411200000, 19.433477],[1495497600000, 19.517739],[1495584000000, 19.531584],[1495670400000, 19.458380],[1495756800000, 19.562277],[1495843200000, 19.563755],[1495929600000, 19.563755],[1496016000000, 19.563755],[1496102400000, 19.612475],[1496188800000, 19.566692]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });