$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1519862400000,0.250461],[1519948800000,0.249726],[1520035200000,0.251761],[1520121600000,0.251761],[1520208000000,0.251761],[1520294400000,0.250665],[1520380800000,0.248041],[1520467200000,0.246563],[1520553600000,0.246563],[1520640000000,0.246563],[1520726400000,0.246563],[1520812800000,0.246563],[1520899200000,0.24338],[1520985600000,0.242451],[1521072000000,0.244188],[1521158400000,0.247694],[1521244800000,0.248967],[1521331200000,0.248967],[1521417600000,0.248967],[1521504000000,0.249063],[1521590400000,0.246995],[1521676800000,0.247424],[1521763200000,0.249202],[1521849600000,0.249941],[1521936000000,0.249941],[1522022400000,0.249941],[1522108800000,0.250221],[1522195200000,0.248448],[1522281600000,0.248763],[1522368000000,0.249365],[1522454400000,0.247144]], 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.250461],[1519862400000, 0.250461],[1519948800000, 0.249726],[1520035200000, 0.251761],[1520121600000, 0.251761],[1520208000000, 0.251761],[1520294400000, 0.250665],[1520380800000, 0.248041],[1520467200000, 0.246563],[1520553600000, 0.246563],[1520640000000, 0.246563],[1520726400000, 0.246563],[1520812800000, 0.246563],[1520899200000, 0.243380],[1520985600000, 0.242451],[1521072000000, 0.244188],[1521158400000, 0.247694],[1521244800000, 0.248967],[1521331200000, 0.248967],[1521417600000, 0.248967],[1521504000000, 0.249063],[1521590400000, 0.246995],[1521676800000, 0.247424],[1521763200000, 0.249202],[1521849600000, 0.249941],[1521936000000, 0.249941],[1522022400000, 0.249941],[1522108800000, 0.250221],[1522195200000, 0.248448],[1522281600000, 0.248763],[1522368000000, 0.249365],[1522454400000, 0.247144]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });