$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1519862400000,32.7403],[1519948800000,32.4594],[1520035200000,32.671],[1520121600000,32.671],[1520208000000,32.671],[1520294400000,32.5915],[1520380800000,32.7017],[1520467200000,32.4009],[1520553600000,32.4009],[1520640000000,32.4009],[1520726400000,32.4009],[1520812800000,32.4009],[1520899200000,31.8925],[1520985600000,32.0787],[1521072000000,32.1767],[1521158400000,32.4231],[1521244800000,32.4179],[1521331200000,32.4179],[1521417600000,32.4179],[1521504000000,32.5401],[1521590400000,32.2873],[1521676800000,32.2888],[1521763200000,32.334],[1521849600000,32.4274],[1521936000000,32.4274],[1522022400000,32.4274],[1522108800000,32.6464],[1522195200000,32.5566],[1522281600000,32.7372],[1522368000000,32.7042],[1522454400000,32.4129]], 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, 32.740257],[1519862400000, 32.740257],[1519948800000, 32.459444],[1520035200000, 32.671005],[1520121600000, 32.671005],[1520208000000, 32.671005],[1520294400000, 32.591496],[1520380800000, 32.701691],[1520467200000, 32.400861],[1520553600000, 32.400861],[1520640000000, 32.400861],[1520726400000, 32.400861],[1520812800000, 32.400861],[1520899200000, 31.892458],[1520985600000, 32.078685],[1521072000000, 32.176689],[1521158400000, 32.423082],[1521244800000, 32.417945],[1521331200000, 32.417945],[1521417600000, 32.417945],[1521504000000, 32.540127],[1521590400000, 32.287252],[1521676800000, 32.288805],[1521763200000, 32.333994],[1521849600000, 32.427359],[1521936000000, 32.427359],[1522022400000, 32.427359],[1522108800000, 32.646378],[1522195200000, 32.556640],[1522281600000, 32.737228],[1522368000000, 32.704238],[1522454400000, 32.412911]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });