$(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: [[1480550400000,0.22561],[1480636800000,0.224448],[1480723200000,0.227405],[1480809600000,0.227405],[1480896000000,0.227405],[1480982400000,0.228594],[1481068800000,0.229088],[1481155200000,0.228064],[1481241600000,0.226216],[1481328000000,0.224942],[1481414400000,0.224942],[1481500800000,0.224942],[1481587200000,0.226024],[1481673600000,0.22656],[1481760000000,0.22879],[1481846400000,0.222713],[1481932800000,0.22279],[1482019200000,0.22279],[1482105600000,0.22279],[1482192000000,0.225141],[1482278400000,0.224079],[1482364800000,0.225182],[1482451200000,0.22345],[1482537600000,0.223803],[1482624000000,0.223803],[1482710400000,0.223803],[1482796800000,0.224645],[1482883200000,0.224645],[1482969600000,0.228545],[1483056000000,0.232896],[1483142400000,0.232896]], 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: [[1480550400000, 0.225610],[1480550400000, 0.225610],[1480636800000, 0.224448],[1480723200000, 0.227405],[1480809600000, 0.227405],[1480896000000, 0.227405],[1480982400000, 0.228594],[1481068800000, 0.229088],[1481155200000, 0.228064],[1481241600000, 0.226216],[1481328000000, 0.224942],[1481414400000, 0.224942],[1481500800000, 0.224942],[1481587200000, 0.226024],[1481673600000, 0.226560],[1481760000000, 0.228790],[1481846400000, 0.222713],[1481932800000, 0.222790],[1482019200000, 0.222790],[1482105600000, 0.222790],[1482192000000, 0.225141],[1482278400000, 0.224079],[1482364800000, 0.225182],[1482451200000, 0.223450],[1482537600000, 0.223803],[1482624000000, 0.223803],[1482710400000, 0.223803],[1482796800000, 0.224645],[1482883200000, 0.224645],[1482969600000, 0.228545],[1483056000000, 0.232896],[1483142400000, 0.232896]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });