$(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: [[1548979200000,0.255339],[1549065600000,0.253193],[1549152000000,0.253193],[1549238400000,0.253193],[1549324800000,0.249554],[1549411200000,0.247541],[1549497600000,0.245685],[1549584000000,0.245843],[1549670400000,0.245009],[1549756800000,0.245009],[1549843200000,0.245009],[1549929600000,0.245523],[1550016000000,0.244649],[1550102400000,0.244655],[1550188800000,0.244596],[1550275200000,0.246534],[1550361600000,0.246534],[1550448000000,0.246534],[1550534400000,0.245917],[1550620800000,0.245339],[1550707200000,0.244588],[1550793600000,0.243904],[1550880000000,0.243685],[1550966400000,0.243685],[1551052800000,0.243685],[1551139200000,0.243721],[1551225600000,0.243429],[1551312000000,0.244114]], 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: [[1548979200000, 0.255339],[1548979200000, 0.255339],[1549065600000, 0.253193],[1549152000000, 0.253193],[1549238400000, 0.253193],[1549324800000, 0.249554],[1549411200000, 0.247541],[1549497600000, 0.245685],[1549584000000, 0.245843],[1549670400000, 0.245009],[1549756800000, 0.245009],[1549843200000, 0.245009],[1549929600000, 0.245523],[1550016000000, 0.244649],[1550102400000, 0.244655],[1550188800000, 0.244596],[1550275200000, 0.246534],[1550361600000, 0.246534],[1550448000000, 0.246534],[1550534400000, 0.245917],[1550620800000, 0.245339],[1550707200000, 0.244588],[1550793600000, 0.243904],[1550880000000, 0.243685],[1550966400000, 0.243685],[1551052800000, 0.243685],[1551139200000, 0.243721],[1551225600000, 0.243429],[1551312000000, 0.244114]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });