$(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: [[1530403200000,0.238773],[1530489600000,0.238773],[1530576000000,0.236941],[1530662400000,0.237649],[1530748800000,0.239265],[1530835200000,0.238915],[1530921600000,0.23797],[1531008000000,0.23797],[1531094400000,0.23797],[1531180800000,0.237661],[1531267200000,0.235601],[1531353600000,0.23579],[1531440000000,0.233178],[1531526400000,0.233084],[1531612800000,0.233084],[1531699200000,0.233084],[1531785600000,0.233304],[1531872000000,0.232893],[1531958400000,0.233278],[1532044800000,0.234206],[1532131200000,0.2357],[1532217600000,0.2357],[1532304000000,0.2357],[1532390400000,0.238043],[1532476800000,0.239261],[1532563200000,0.239806],[1532649600000,0.240357],[1532736000000,0.240698],[1532822400000,0.240698],[1532908800000,0.240698],[1532995200000,0.240857]], 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: [[1530403200000, 0.238773],[1530403200000, 0.238773],[1530489600000, 0.238773],[1530576000000, 0.236941],[1530662400000, 0.237649],[1530748800000, 0.239265],[1530835200000, 0.238915],[1530921600000, 0.237970],[1531008000000, 0.237970],[1531094400000, 0.237970],[1531180800000, 0.237661],[1531267200000, 0.235601],[1531353600000, 0.235790],[1531440000000, 0.233178],[1531526400000, 0.233084],[1531612800000, 0.233084],[1531699200000, 0.233084],[1531785600000, 0.233304],[1531872000000, 0.232893],[1531958400000, 0.233278],[1532044800000, 0.234206],[1532131200000, 0.235700],[1532217600000, 0.235700],[1532304000000, 0.235700],[1532390400000, 0.238043],[1532476800000, 0.239261],[1532563200000, 0.239806],[1532649600000, 0.240357],[1532736000000, 0.240698],[1532822400000, 0.240698],[1532908800000, 0.240698],[1532995200000, 0.240857]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });