$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1519862400000,1.60642],[1519948800000,1.59887],[1520035200000,1.59086],[1520121600000,1.59086],[1520208000000,1.59086],[1520294400000,1.58562],[1520380800000,1.57794],[1520467200000,1.56532],[1520553600000,1.56532],[1520640000000,1.56532],[1520726400000,1.56532],[1520812800000,1.56532],[1520899200000,1.55865],[1520985600000,1.56188],[1521072000000,1.57153],[1521158400000,1.58873],[1521244800000,1.59508],[1521331200000,1.59508],[1521417600000,1.59508],[1521504000000,1.60305],[1521590400000,1.5907],[1521676800000,1.58761],[1521763200000,1.58558],[1521849600000,1.58725],[1521936000000,1.58725],[1522022400000,1.58725],[1522108800000,1.59211],[1522195200000,1.59509],[1522281600000,1.60278],[1522368000000,1.61181],[1522454400000,1.59743]], 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, 1.606419],[1519862400000, 1.606419],[1519948800000, 1.598871],[1520035200000, 1.590862],[1520121600000, 1.590862],[1520208000000, 1.590862],[1520294400000, 1.585620],[1520380800000, 1.577942],[1520467200000, 1.565315],[1520553600000, 1.565315],[1520640000000, 1.565315],[1520726400000, 1.565315],[1520812800000, 1.565315],[1520899200000, 1.558653],[1520985600000, 1.561885],[1521072000000, 1.571528],[1521158400000, 1.588729],[1521244800000, 1.595080],[1521331200000, 1.595080],[1521417600000, 1.595080],[1521504000000, 1.603049],[1521590400000, 1.590700],[1521676800000, 1.587610],[1521763200000, 1.585576],[1521849600000, 1.587249],[1521936000000, 1.587249],[1522022400000, 1.587249],[1522108800000, 1.592112],[1522195200000, 1.595093],[1522281600000, 1.602785],[1522368000000, 1.611813],[1522454400000, 1.597426]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });