$(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: [[1501545600000,30.3199],[1501632000000,30.5424],[1501718400000,30.6421],[1501804800000,30.7005],[1501891200000,30.6703],[1501977600000,30.6703],[1502064000000,30.6703],[1502150400000,30.4185],[1502236800000,30.4004],[1502323200000,30.1774],[1502409600000,30.1423],[1502496000000,30.231],[1502582400000,30.231],[1502668800000,30.231],[1502755200000,30.2365],[1502841600000,30.0626],[1502928000000,29.9457],[1503014400000,29.8348],[1503100800000,29.9257],[1503187200000,29.9257],[1503273600000,29.9257],[1503360000000,null],[1503446400000,29.9592],[1503532800000,30.1412],[1503619200000,30.1412],[1503705600000,30.1412],[1503792000000,30.1412],[1503878400000,30.1412],[1503964800000,30.4275],[1504051200000,30.6508],[1504137600000,30.4806]], 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, 30.319911],[1501545600000, 30.319911],[1501632000000, 30.542375],[1501718400000, 30.642055],[1501804800000, 30.700502],[1501891200000, 30.670345],[1501977600000, 30.670345],[1502064000000, 30.670345],[1502150400000, 30.418455],[1502236800000, 30.400443],[1502323200000, 30.177414],[1502409600000, 30.142286],[1502496000000, 30.231004],[1502582400000, 30.231004],[1502668800000, 30.231004],[1502755200000, 30.236516],[1502841600000, 30.062620],[1502928000000, 29.945655],[1503014400000, 29.834847],[1503100800000, 29.925731],[1503187200000, 29.925731],[1503273600000, 29.925731],[1503446400000, 29.959201],[1503532800000, 30.141230],[1503619200000, 30.141230],[1503705600000, 30.141230],[1503792000000, 30.141230],[1503878400000, 30.141230],[1503964800000, 30.427546],[1504051200000, 30.650806],[1504137600000, 30.480581]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });