$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1546300800000,38.5086],[1546387200000,38.5086],[1546473600000,38.5086],[1546560000000,38.1688],[1546646400000,38.5365],[1546732800000,38.5365],[1546819200000,38.5365],[1546905600000,38.5365],[1546992000000,39.0514],[1547078400000,39.176],[1547164800000,39.5152],[1547251200000,39.3967],[1547337600000,39.3967],[1547424000000,39.3967],[1547510400000,39.1504],[1547596800000,39.3017],[1547683200000,39.0053],[1547769600000,39.0683],[1547856000000,38.9828],[1547942400000,38.9828],[1548028800000,38.9828],[1548115200000,38.9379],[1548201600000,38.7929],[1548288000000,38.5701],[1548374400000,38.6568],[1548460800000,38.7382],[1548547200000,38.7382],[1548633600000,38.7382],[1548720000000,38.7927],[1548806400000,38.8023],[1548892800000,38.7798]], 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, 38.508604],[1546300800000, 38.508604],[1546387200000, 38.508604],[1546473600000, 38.508604],[1546560000000, 38.168790],[1546646400000, 38.536499],[1546732800000, 38.536499],[1546819200000, 38.536499],[1546905600000, 38.536499],[1546992000000, 39.051435],[1547078400000, 39.175992],[1547164800000, 39.515236],[1547251200000, 39.396721],[1547337600000, 39.396721],[1547424000000, 39.396721],[1547510400000, 39.150364],[1547596800000, 39.301738],[1547683200000, 39.005307],[1547769600000, 39.068346],[1547856000000, 38.982843],[1547942400000, 38.982843],[1548028800000, 38.982843],[1548115200000, 38.937933],[1548201600000, 38.792926],[1548288000000, 38.570054],[1548374400000, 38.656828],[1548460800000, 38.738205],[1548547200000, 38.738205],[1548633600000, 38.738205],[1548720000000, 38.792721],[1548806400000, 38.802268],[1548892800000, 38.779811]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });