$(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: [[1477958400000,0.242926],[1478044800000,null],[1478131200000,0.247403],[1478217600000,0.247861],[1478304000000,0.248351],[1478390400000,0.248351],[1478476800000,0.248351],[1478563200000,0.245115],[1478649600000,0.243963],[1478736000000,0.245979],[1478822400000,0.239428],[1478908800000,0.241009],[1478995200000,0.241009],[1479081600000,0.241009],[1479168000000,0.238687],[1479254400000,0.240255],[1479340800000,0.24047],[1479427200000,0.2384],[1479513600000,0.235349],[1479600000000,0.235349],[1479686400000,0.235349],[1479772800000,0.233105],[1479859200000,0.231375],[1479945600000,0.22982],[1480032000000,0.225992],[1480118400000,0.227573],[1480204800000,0.227573],[1480291200000,0.227573],[1480377600000,0.227826],[1480464000000,0.226598]], 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: [[1477958400000, 0.242926],[1477958400000, 0.242926],[1478131200000, 0.247403],[1478217600000, 0.247861],[1478304000000, 0.248351],[1478390400000, 0.248351],[1478476800000, 0.248351],[1478563200000, 0.245115],[1478649600000, 0.243963],[1478736000000, 0.245979],[1478822400000, 0.239428],[1478908800000, 0.241009],[1478995200000, 0.241009],[1479081600000, 0.241009],[1479168000000, 0.238687],[1479254400000, 0.240255],[1479340800000, 0.240470],[1479427200000, 0.238400],[1479513600000, 0.235349],[1479600000000, 0.235349],[1479686400000, 0.235349],[1479772800000, 0.233105],[1479859200000, 0.231375],[1479945600000, 0.229820],[1480032000000, 0.225992],[1480118400000, 0.227573],[1480204800000, 0.227573],[1480291200000, 0.227573],[1480377600000, 0.227826],[1480464000000, 0.226598]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });