$(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: [[1535760000000,0.255014],[1535846400000,0.255014],[1535932800000,0.255014],[1536019200000,0.255323],[1536105600000,0.256171],[1536192000000,0.254752],[1536278400000,0.253466],[1536364800000,0.255008],[1536451200000,0.255008],[1536537600000,0.255008],[1536624000000,0.253859],[1536710400000,0.252429],[1536796800000,0.251438],[1536883200000,0.252031],[1536969600000,0.251678],[1537056000000,0.251678],[1537142400000,0.251678],[1537228800000,0.250988],[1537315200000,0.250958],[1537401600000,0.250556],[1537488000000,0.250235],[1537574400000,0.249163],[1537660800000,0.249163],[1537747200000,0.249163],[1537833600000,0.249662],[1537920000000,0.248891],[1538006400000,0.249086],[1538092800000,0.250691],[1538179200000,0.249373],[1538265600000,0.249373]], 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: [[1535760000000, 0.255014],[1535760000000, 0.255014],[1535846400000, 0.255014],[1535932800000, 0.255014],[1536019200000, 0.255323],[1536105600000, 0.256171],[1536192000000, 0.254752],[1536278400000, 0.253466],[1536364800000, 0.255008],[1536451200000, 0.255008],[1536537600000, 0.255008],[1536624000000, 0.253859],[1536710400000, 0.252429],[1536796800000, 0.251438],[1536883200000, 0.252031],[1536969600000, 0.251678],[1537056000000, 0.251678],[1537142400000, 0.251678],[1537228800000, 0.250988],[1537315200000, 0.250958],[1537401600000, 0.250556],[1537488000000, 0.250235],[1537574400000, 0.249163],[1537660800000, 0.249163],[1537747200000, 0.249163],[1537833600000, 0.249662],[1537920000000, 0.248891],[1538006400000, 0.249086],[1538092800000, 0.250691],[1538179200000, 0.249373],[1538265600000, 0.249373]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });