$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1519862400000,0.47549],[1519948800000,0.47258],[1520035200000,0.46832],[1520121600000,0.46832],[1520208000000,0.46832],[1520294400000,0.46378],[1520380800000,0.46632],[1520467200000,0.45939],[1520553600000,0.45939],[1520640000000,0.45939],[1520726400000,0.45939],[1520812800000,0.45939],[1520899200000,0.45793],[1520985600000,0.45518],[1521072000000,0.45689],[1521158400000,0.46077],[1521244800000,0.45838],[1521331200000,0.45838],[1521417600000,0.45838],[1521504000000,0.45934],[1521590400000,0.4558],[1521676800000,0.4571],[1521763200000,0.46189],[1521849600000,0.45993],[1521936000000,0.45993],[1522022400000,0.45993],[1522108800000,0.46145],[1522195200000,0.4601],[1522281600000,0.45874],[1522368000000,0.45953],[1522454400000,0.45939]], 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.475490],[1519862400000, 0.475490],[1519948800000, 0.472580],[1520035200000, 0.468320],[1520121600000, 0.468320],[1520208000000, 0.468320],[1520294400000, 0.463780],[1520380800000, 0.466320],[1520467200000, 0.459390],[1520553600000, 0.459390],[1520640000000, 0.459390],[1520726400000, 0.459390],[1520812800000, 0.459390],[1520899200000, 0.457930],[1520985600000, 0.455180],[1521072000000, 0.456890],[1521158400000, 0.460770],[1521244800000, 0.458380],[1521331200000, 0.458380],[1521417600000, 0.458380],[1521504000000, 0.459340],[1521590400000, 0.455800],[1521676800000, 0.457100],[1521763200000, 0.461890],[1521849600000, 0.459930],[1521936000000, 0.459930],[1522022400000, 0.459930],[1522108800000, 0.461450],[1522195200000, 0.460100],[1522281600000, 0.458740],[1522368000000, 0.459530],[1522454400000, 0.459390]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });