$(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: [[1525132800000,0.239622],[1525219200000,0.239622],[1525305600000,0.238201],[1525392000000,0.239707],[1525478400000,0.241506],[1525564800000,0.241506],[1525651200000,0.241506],[1525737600000,0.240419],[1525824000000,0.240417],[1525910400000,0.240417],[1525996800000,0.238911],[1526083200000,0.239686],[1526169600000,0.239686],[1526256000000,0.239686],[1526342400000,0.239004],[1526428800000,0.238176],[1526515200000,0.237878],[1526601600000,0.236613],[1526688000000,0.23571],[1526774400000,0.23571],[1526860800000,0.23571],[1526947200000,0.234422],[1527033600000,0.235259],[1527120000000,0.237433],[1527206400000,0.238353],[1527292800000,0.239035],[1527379200000,0.239035],[1527465600000,0.239035],[1527552000000,0.239035],[1527638400000,0.239634],[1527724800000,0.239833]], 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: [[1525132800000, 0.239622],[1525132800000, 0.239622],[1525219200000, 0.239622],[1525305600000, 0.238201],[1525392000000, 0.239707],[1525478400000, 0.241506],[1525564800000, 0.241506],[1525651200000, 0.241506],[1525737600000, 0.240419],[1525824000000, 0.240417],[1525910400000, 0.240417],[1525996800000, 0.238911],[1526083200000, 0.239686],[1526169600000, 0.239686],[1526256000000, 0.239686],[1526342400000, 0.239004],[1526428800000, 0.238176],[1526515200000, 0.237878],[1526601600000, 0.236613],[1526688000000, 0.235710],[1526774400000, 0.235710],[1526860800000, 0.235710],[1526947200000, 0.234422],[1527033600000, 0.235259],[1527120000000, 0.237433],[1527206400000, 0.238353],[1527292800000, 0.239035],[1527379200000, 0.239035],[1527465600000, 0.239035],[1527552000000, 0.239035],[1527638400000, 0.239634],[1527724800000, 0.239833]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });