$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1493596800000,29.0311],[1493683200000,29.0311],[1493769600000,29.0311],[1493856000000,28.9609],[1493942400000,28.941],[1494028800000,29.0569],[1494115200000,29.0569],[1494201600000,29.0569],[1494288000000,29.0569],[1494374400000,29.0569],[1494460800000,28.7893],[1494547200000,28.7018],[1494633600000,28.7935],[1494720000000,28.7935],[1494806400000,28.7935],[1494892800000,29.045],[1494979200000,29.2327],[1495065600000,29.3683],[1495152000000,29.3733],[1495238400000,29.4786],[1495324800000,29.4786],[1495411200000,29.4786],[1495497600000,29.6162],[1495584000000,29.5005],[1495670400000,29.3997],[1495756800000,29.4667],[1495843200000,29.4963],[1495929600000,29.4963],[1496016000000,29.4963],[1496102400000,29.5227],[1496188800000,29.444]], 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, 29.031096],[1493596800000, 29.031096],[1493683200000, 29.031096],[1493769600000, 29.031096],[1493856000000, 28.960928],[1493942400000, 28.941010],[1494028800000, 29.056889],[1494115200000, 29.056889],[1494201600000, 29.056889],[1494288000000, 29.056889],[1494374400000, 29.056889],[1494460800000, 28.789266],[1494547200000, 28.701818],[1494633600000, 28.793462],[1494720000000, 28.793462],[1494806400000, 28.793462],[1494892800000, 29.045020],[1494979200000, 29.232698],[1495065600000, 29.368275],[1495152000000, 29.373262],[1495238400000, 29.478642],[1495324800000, 29.478642],[1495411200000, 29.478642],[1495497600000, 29.616217],[1495584000000, 29.500505],[1495670400000, 29.399666],[1495756800000, 29.466658],[1495843200000, 29.496274],[1495929600000, 29.496274],[1496016000000, 29.496274],[1496102400000, 29.522658],[1496188800000, 29.443959]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });