$(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: [[1554076800000,0.245636],[1554163200000,0.245041],[1554249600000,0.242212],[1554336000000,0.242995],[1554422400000,0.242509],[1554508800000,0.23971],[1554595200000,0.23971],[1554681600000,0.23971],[1554768000000,0.239024],[1554854400000,0.239863],[1554940800000,0.240776],[1555027200000,0.241204],[1555113600000,0.238583],[1555200000000,0.238583],[1555286400000,0.238583],[1555372800000,0.239463],[1555459200000,0.238641],[1555545600000,0.238397],[1555632000000,0.239889],[1555718400000,0.240034],[1555804800000,0.240034],[1555891200000,0.240034],[1555977600000,0.239332],[1556064000000,0.238521],[1556150400000,0.237829],[1556236800000,0.237916],[1556323200000,0.236998],[1556409600000,0.236998],[1556496000000,0.236998],[1556582400000,0.236998]], 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: [[1554076800000, 0.245636],[1554076800000, 0.245636],[1554163200000, 0.245041],[1554249600000, 0.242212],[1554336000000, 0.242995],[1554422400000, 0.242509],[1554508800000, 0.239710],[1554595200000, 0.239710],[1554681600000, 0.239710],[1554768000000, 0.239024],[1554854400000, 0.239863],[1554940800000, 0.240776],[1555027200000, 0.241204],[1555113600000, 0.238583],[1555200000000, 0.238583],[1555286400000, 0.238583],[1555372800000, 0.239463],[1555459200000, 0.238641],[1555545600000, 0.238397],[1555632000000, 0.239889],[1555718400000, 0.240034],[1555804800000, 0.240034],[1555891200000, 0.240034],[1555977600000, 0.239332],[1556064000000, 0.238521],[1556150400000, 0.237829],[1556236800000, 0.237916],[1556323200000, 0.236998],[1556409600000, 0.236998],[1556496000000, 0.236998],[1556582400000, 0.236998]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });