$(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: [[1496275200000,0.237322],[1496361600000,0.236677],[1496448000000,0.235797],[1496534400000,0.235797],[1496620800000,0.235797],[1496707200000,0.235797],[1496793600000,0.239997],[1496880000000,0.239409],[1496966400000,0.237238],[1497052800000,0.236528],[1497139200000,0.236528],[1497225600000,0.236528],[1497312000000,0.237258],[1497398400000,0.236238],[1497484800000,0.235836],[1497571200000,0.23619],[1497657600000,0.233722],[1497744000000,0.233722],[1497830400000,0.233722],[1497916800000,0.234535],[1498003200000,0.233759],[1498089600000,0.233544],[1498176000000,0.233911],[1498262400000,0.233874],[1498348800000,0.233874],[1498435200000,0.233874],[1498521600000,0.233148],[1498608000000,0.233142],[1498694400000,0.233142],[1498780800000,0.231642]], 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: [[1496275200000, 0.237322],[1496275200000, 0.237322],[1496361600000, 0.236677],[1496448000000, 0.235797],[1496534400000, 0.235797],[1496620800000, 0.235797],[1496707200000, 0.235797],[1496793600000, 0.239997],[1496880000000, 0.239409],[1496966400000, 0.237238],[1497052800000, 0.236528],[1497139200000, 0.236528],[1497225600000, 0.236528],[1497312000000, 0.237258],[1497398400000, 0.236238],[1497484800000, 0.235836],[1497571200000, 0.236190],[1497657600000, 0.233722],[1497744000000, 0.233722],[1497830400000, 0.233722],[1497916800000, 0.234535],[1498003200000, 0.233759],[1498089600000, 0.233544],[1498176000000, 0.233911],[1498262400000, 0.233874],[1498348800000, 0.233874],[1498435200000, 0.233874],[1498521600000, 0.233148],[1498608000000, 0.233142],[1498694400000, 0.233142],[1498780800000, 0.231642]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });