$(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: [[1493596800000,0.238429],[1493683200000,0.238429],[1493769600000,0.238429],[1493856000000,0.236474],[1493942400000,0.234701],[1494028800000,0.235679],[1494115200000,0.235679],[1494201600000,0.235679],[1494288000000,0.235679],[1494374400000,0.235679],[1494460800000,0.232471],[1494547200000,0.232046],[1494633600000,0.232543],[1494720000000,0.232543],[1494806400000,0.232543],[1494892800000,0.233387],[1494979200000,0.232615],[1495065600000,0.235285],[1495152000000,0.23871],[1495238400000,0.237062],[1495324800000,0.237062],[1495411200000,0.237062],[1495497600000,0.236589],[1495584000000,0.236724],[1495670400000,0.234915],[1495756800000,0.235113],[1495843200000,0.237146],[1495929600000,0.237146],[1496016000000,0.237146],[1496102400000,0.236996],[1496188800000,0.237509]], 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: [[1493596800000, 0.238429],[1493596800000, 0.238429],[1493683200000, 0.238429],[1493769600000, 0.238429],[1493856000000, 0.236474],[1493942400000, 0.234701],[1494028800000, 0.235679],[1494115200000, 0.235679],[1494201600000, 0.235679],[1494288000000, 0.235679],[1494374400000, 0.235679],[1494460800000, 0.232471],[1494547200000, 0.232046],[1494633600000, 0.232543],[1494720000000, 0.232543],[1494806400000, 0.232543],[1494892800000, 0.233387],[1494979200000, 0.232615],[1495065600000, 0.235285],[1495152000000, 0.238710],[1495238400000, 0.237062],[1495324800000, 0.237062],[1495411200000, 0.237062],[1495497600000, 0.236589],[1495584000000, 0.236724],[1495670400000, 0.234915],[1495756800000, 0.235113],[1495843200000, 0.237146],[1495929600000, 0.237146],[1496016000000, 0.237146],[1496102400000, 0.236996],[1496188800000, 0.237509]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });