$(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: [[1519862400000,38.7577],[1519948800000,38.5],[1520035200000,38.4777],[1520121600000,38.4777],[1520208000000,38.4777],[1520294400000,38.3998],[1520380800000,38.3142],[1520467200000,37.9665],[1520553600000,37.9665],[1520640000000,37.9665],[1520726400000,37.9665],[1520812800000,37.9665],[1520899200000,37.5734],[1520985600000,37.5985],[1521072000000,37.8405],[1521158400000,38.1819],[1521244800000,38.2866],[1521331200000,38.2866],[1521417600000,38.2866],[1521504000000,38.3781],[1521590400000,38.16],[1521676800000,38.127],[1521763200000,38.1827],[1521849600000,38.2326],[1521936000000,38.2326],[1522022400000,38.2326],[1522108800000,38.404],[1522195200000,38.3623],[1522281600000,38.4875],[1522368000000,38.5854],[1522454400000,38.2417]], 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: [[1519862400000, 38.757746],[1519862400000, 38.757746],[1519948800000, 38.500010],[1520035200000, 38.477684],[1520121600000, 38.477684],[1520208000000, 38.477684],[1520294400000, 38.399805],[1520380800000, 38.314220],[1520467200000, 37.966493],[1520553600000, 37.966493],[1520640000000, 37.966493],[1520726400000, 37.966493],[1520812800000, 37.966493],[1520899200000, 37.573372],[1520985600000, 37.598544],[1521072000000, 37.840495],[1521158400000, 38.181891],[1521244800000, 38.286571],[1521331200000, 38.286571],[1521417600000, 38.286571],[1521504000000, 38.378072],[1521590400000, 38.159981],[1521676800000, 38.126992],[1521763200000, 38.182683],[1521849600000, 38.232638],[1521936000000, 38.232638],[1522022400000, 38.232638],[1522108800000, 38.403989],[1522195200000, 38.362319],[1522281600000, 38.487521],[1522368000000, 38.585369],[1522454400000, 38.241655]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });