$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1519862400000,0.104292],[1519948800000,0.103446],[1520035200000,0.104088],[1520121600000,0.104088],[1520208000000,0.104088],[1520294400000,0.103874],[1520380800000,0.104442],[1520467200000,0.103936],[1520553600000,0.103936],[1520640000000,0.103936],[1520726400000,0.103936],[1520812800000,0.103936],[1520899200000,0.102255],[1520985600000,0.102846],[1521072000000,0.103253],[1521158400000,0.104231],[1521244800000,0.104224],[1521331200000,0.104224],[1521417600000,0.104224],[1521504000000,0.104637],[1521590400000,0.103774],[1521676800000,0.103679],[1521763200000,0.103748],[1521849600000,0.103635],[1521936000000,0.103635],[1522022400000,0.103635],[1522108800000,0.104392],[1522195200000,0.104065],[1522281600000,0.104756],[1522368000000,0.104778],[1522454400000,0.103844]], 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, 0.104292],[1519862400000, 0.104292],[1519948800000, 0.103446],[1520035200000, 0.104088],[1520121600000, 0.104088],[1520208000000, 0.104088],[1520294400000, 0.103874],[1520380800000, 0.104442],[1520467200000, 0.103936],[1520553600000, 0.103936],[1520640000000, 0.103936],[1520726400000, 0.103936],[1520812800000, 0.103936],[1520899200000, 0.102255],[1520985600000, 0.102846],[1521072000000, 0.103253],[1521158400000, 0.104231],[1521244800000, 0.104224],[1521331200000, 0.104224],[1521417600000, 0.104224],[1521504000000, 0.104637],[1521590400000, 0.103774],[1521676800000, 0.103679],[1521763200000, 0.103748],[1521849600000, 0.103635],[1521936000000, 0.103635],[1522022400000, 0.103635],[1522108800000, 0.104392],[1522195200000, 0.104065],[1522281600000, 0.104756],[1522368000000, 0.104778],[1522454400000, 0.103844]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });