$(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: [[1491004800000,36.6644],[1491091200000,36.6644],[1491177600000,36.6644],[1491264000000,36.6671],[1491350400000,36.7916],[1491436800000,36.8668],[1491523200000,36.7736],[1491609600000,36.563],[1491696000000,36.563],[1491782400000,36.563],[1491868800000,36.4274],[1491955200000,36.4309],[1492041600000,36.4426],[1492128000000,36.4976],[1492214400000,36.4267],[1492300800000,36.4267],[1492387200000,36.4267],[1492473600000,36.4267],[1492560000000,36.5354],[1492646400000,36.5603],[1492732800000,36.534],[1492819200000,36.4391],[1492905600000,36.4391],[1492992000000,36.4391],[1493078400000,36.4985],[1493164800000,36.4571],[1493251200000,36.385],[1493337600000,36.3513],[1493424000000,36.4157],[1493510400000,36.4157]], 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: [[1491004800000, 36.664412],[1491004800000, 36.664412],[1491091200000, 36.664412],[1491177600000, 36.664412],[1491264000000, 36.667145],[1491350400000, 36.791616],[1491436800000, 36.866803],[1491523200000, 36.773579],[1491609600000, 36.562960],[1491696000000, 36.562960],[1491782400000, 36.562960],[1491868800000, 36.427383],[1491955200000, 36.430928],[1492041600000, 36.442625],[1492128000000, 36.497557],[1492214400000, 36.426705],[1492300800000, 36.426705],[1492387200000, 36.426705],[1492473600000, 36.426705],[1492560000000, 36.535385],[1492646400000, 36.560261],[1492732800000, 36.533999],[1492819200000, 36.439149],[1492905600000, 36.439149],[1492992000000, 36.439149],[1493078400000, 36.498513],[1493164800000, 36.457091],[1493251200000, 36.385038],[1493337600000, 36.351288],[1493424000000, 36.415664],[1493510400000, 36.415664]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });