$(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: [[1498867200000,0.232469],[1498953600000,0.232469],[1499040000000,0.232469],[1499126400000,0.230057],[1499212800000,0.229739],[1499299200000,0.230026],[1499385600000,0.22998],[1499472000000,0.228794],[1499558400000,0.228794],[1499644800000,0.228794],[1499731200000,0.227812],[1499817600000,0.227225],[1499904000000,0.228158],[1499990400000,0.22953],[1500076800000,0.230048],[1500163200000,0.230048],[1500249600000,0.230048],[1500336000000,0.230955],[1500422400000,0.231441],[1500508800000,0.231895],[1500595200000,0.230986],[1500681600000,0.232353],[1500768000000,0.232353],[1500854400000,0.232353],[1500940800000,0.233002],[1501027200000,0.231975],[1501113600000,0.231386],[1501200000000,0.232412],[1501286400000,0.233155],[1501372800000,0.233155],[1501459200000,0.233155]], 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: [[1498867200000, 0.232469],[1498867200000, 0.232469],[1498953600000, 0.232469],[1499040000000, 0.232469],[1499126400000, 0.230057],[1499212800000, 0.229739],[1499299200000, 0.230026],[1499385600000, 0.229980],[1499472000000, 0.228794],[1499558400000, 0.228794],[1499644800000, 0.228794],[1499731200000, 0.227812],[1499817600000, 0.227225],[1499904000000, 0.228158],[1499990400000, 0.229530],[1500076800000, 0.230048],[1500163200000, 0.230048],[1500249600000, 0.230048],[1500336000000, 0.230955],[1500422400000, 0.231441],[1500508800000, 0.231895],[1500595200000, 0.230986],[1500681600000, 0.232353],[1500768000000, 0.232353],[1500854400000, 0.232353],[1500940800000, 0.233002],[1501027200000, 0.231975],[1501113600000, 0.231386],[1501200000000, 0.232412],[1501286400000, 0.233155],[1501372800000, 0.233155],[1501459200000, 0.233155]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });