$(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: [[1546300800000,3.08584],[1546387200000,3.08584],[1546473600000,3.08584],[1546560000000,3.03675],[1546646400000,3.08384],[1546732800000,3.08384],[1546819200000,3.08384],[1546905600000,3.08384],[1546992000000,3.14753],[1547078400000,3.14995],[1547164800000,3.18755],[1547251200000,3.1728],[1547337600000,3.1728],[1547424000000,3.1728],[1547510400000,3.13531],[1547596800000,3.14227],[1547683200000,3.11245],[1547769600000,3.10594],[1547856000000,3.11211],[1547942400000,3.11211],[1548028800000,3.11211],[1548115200000,3.09761],[1548201600000,3.0889],[1548288000000,3.07377],[1548374400000,3.06416],[1548460800000,3.06482],[1548547200000,3.06482],[1548633600000,3.06482],[1548720000000,3.06568],[1548806400000,3.06462],[1548892800000,3.05478]], 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: [[1546300800000, 3.085843],[1546300800000, 3.085843],[1546387200000, 3.085843],[1546473600000, 3.085843],[1546560000000, 3.036754],[1546646400000, 3.083840],[1546732800000, 3.083840],[1546819200000, 3.083840],[1546905600000, 3.083840],[1546992000000, 3.147529],[1547078400000, 3.149949],[1547164800000, 3.187552],[1547251200000, 3.172802],[1547337600000, 3.172802],[1547424000000, 3.172802],[1547510400000, 3.135311],[1547596800000, 3.142268],[1547683200000, 3.112451],[1547769600000, 3.105942],[1547856000000, 3.112105],[1547942400000, 3.112105],[1548028800000, 3.112105],[1548115200000, 3.097615],[1548201600000, 3.088897],[1548288000000, 3.073774],[1548374400000, 3.064156],[1548460800000, 3.064818],[1548547200000, 3.064818],[1548633600000, 3.064818],[1548720000000, 3.065682],[1548806400000, 3.064618],[1548892800000, 3.054784]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });