$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1501545600000,3.17742],[1501632000000,3.19605],[1501718400000,3.19461],[1501804800000,3.19487],[1501891200000,3.19306],[1501977600000,3.19306],[1502064000000,3.19306],[1502150400000,3.16282],[1502236800000,3.16737],[1502323200000,3.13662],[1502409600000,3.15032],[1502496000000,3.14634],[1502582400000,3.14634],[1502668800000,3.14634],[1502755200000,3.16067],[1502841600000,3.16999],[1502928000000,3.15816],[1503014400000,3.1376],[1503100800000,3.13786],[1503187200000,3.13786],[1503273600000,3.13786],[1503360000000,null],[1503446400000,3.14071],[1503532800000,3.15764],[1503619200000,3.15764],[1503705600000,3.15764],[1503792000000,3.15764],[1503878400000,3.15764],[1503964800000,3.19768],[1504051200000,3.21412],[1504137600000,3.20528]], 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: [[1501545600000, 3.177422],[1501545600000, 3.177422],[1501632000000, 3.196046],[1501718400000, 3.194609],[1501804800000, 3.194874],[1501891200000, 3.193065],[1501977600000, 3.193065],[1502064000000, 3.193065],[1502150400000, 3.162823],[1502236800000, 3.167373],[1502323200000, 3.136619],[1502409600000, 3.150323],[1502496000000, 3.146343],[1502582400000, 3.146343],[1502668800000, 3.146343],[1502755200000, 3.160666],[1502841600000, 3.169992],[1502928000000, 3.158158],[1503014400000, 3.137604],[1503100800000, 3.137856],[1503187200000, 3.137856],[1503273600000, 3.137856],[1503446400000, 3.140707],[1503532800000, 3.157638],[1503619200000, 3.157638],[1503705600000, 3.157638],[1503792000000, 3.157638],[1503878400000, 3.157638],[1503964800000, 3.197682],[1504051200000, 3.214119],[1504137600000, 3.205277]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });