$(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: [[1522540800000,0.247144],[1522627200000,0.247144],[1522713600000,0.245771],[1522800000000,0.247831],[1522886400000,0.247187],[1522972800000,0.243468],[1523059200000,0.242472],[1523145600000,0.242472],[1523232000000,0.242472],[1523318400000,0.242472],[1523404800000,0.24273],[1523491200000,0.242754],[1523577600000,0.242525],[1523664000000,0.242597],[1523750400000,0.242597],[1523836800000,0.242597],[1523923200000,0.24307],[1524009600000,0.243526],[1524096000000,0.243878],[1524182400000,0.244378],[1524268800000,0.243358],[1524355200000,0.243358],[1524441600000,0.243358],[1524528000000,0.24152],[1524614400000,0.240523],[1524700800000,0.240627],[1524787200000,0.24021],[1524873600000,0.239622],[1524960000000,0.239622],[1525046400000,0.239622]], 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: [[1522540800000, 0.247144],[1522540800000, 0.247144],[1522627200000, 0.247144],[1522713600000, 0.245771],[1522800000000, 0.247831],[1522886400000, 0.247187],[1522972800000, 0.243468],[1523059200000, 0.242472],[1523145600000, 0.242472],[1523232000000, 0.242472],[1523318400000, 0.242472],[1523404800000, 0.242730],[1523491200000, 0.242754],[1523577600000, 0.242525],[1523664000000, 0.242597],[1523750400000, 0.242597],[1523836800000, 0.242597],[1523923200000, 0.243070],[1524009600000, 0.243526],[1524096000000, 0.243878],[1524182400000, 0.244378],[1524268800000, 0.243358],[1524355200000, 0.243358],[1524441600000, 0.243358],[1524528000000, 0.241520],[1524614400000, 0.240523],[1524700800000, 0.240627],[1524787200000, 0.240210],[1524873600000, 0.239622],[1524960000000, 0.239622],[1525046400000, 0.239622]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });