$(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: [[1533168000000,0.241074],[1533254400000,0.242445],[1533340800000,0.242808],[1533427200000,0.242808],[1533513600000,0.242808],[1533600000000,0.24338],[1533686400000,0.243248],[1533772800000,0.242744],[1533859200000,0.243948],[1533945600000,0.245633],[1534032000000,0.245633],[1534118400000,0.245633],[1534204800000,0.247251],[1534291200000,0.247743],[1534377600000,0.247282],[1534464000000,0.249654],[1534550400000,0.252718],[1534636800000,0.252718],[1534723200000,0.252718],[1534809600000,0.250532],[1534896000000,0.250936],[1534982400000,0.252903],[1535068800000,0.251354],[1535155200000,0.251354],[1535241600000,0.251354],[1535328000000,0.251354],[1535414400000,0.251153],[1535500800000,0.252618],[1535587200000,0.252708],[1535673600000,0.253716]], 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: [[1533168000000, 0.241074],[1533168000000, 0.241074],[1533254400000, 0.242445],[1533340800000, 0.242808],[1533427200000, 0.242808],[1533513600000, 0.242808],[1533600000000, 0.243380],[1533686400000, 0.243248],[1533772800000, 0.242744],[1533859200000, 0.243948],[1533945600000, 0.245633],[1534032000000, 0.245633],[1534118400000, 0.245633],[1534204800000, 0.247251],[1534291200000, 0.247743],[1534377600000, 0.247282],[1534464000000, 0.249654],[1534550400000, 0.252718],[1534636800000, 0.252718],[1534723200000, 0.252718],[1534809600000, 0.250532],[1534896000000, 0.250936],[1534982400000, 0.252903],[1535068800000, 0.251354],[1535155200000, 0.251354],[1535241600000, 0.251354],[1535328000000, 0.251354],[1535414400000, 0.251153],[1535500800000, 0.252618],[1535587200000, 0.252708],[1535673600000, 0.253716]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });