$(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: [[1564617600000,0.230508],[1564704000000,0.232807],[1564790400000,0.239202],[1564876800000,0.239202],[1564963200000,0.239202],[1565049600000,0.242618],[1565136000000,0.240369],[1565222400000,0.240381],[1565308800000,0.238847],[1565395200000,0.237083],[1565481600000,0.237083],[1565568000000,0.237083],[1565654400000,0.239293],[1565740800000,0.239124],[1565827200000,0.238428],[1565913600000,0.23852],[1566000000000,0.236463],[1566086400000,0.236463],[1566172800000,0.236463],[1566259200000,0.236206],[1566345600000,0.236314],[1566432000000,0.236696],[1566518400000,0.234952],[1566604800000,0.235437],[1566691200000,0.235437],[1566777600000,0.235437],[1566864000000,0.235437],[1566950400000,0.237956],[1567036800000,0.238551],[1567123200000,0.2374],[1567209600000,0.236605]], 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: [[1564617600000, 0.230508],[1564617600000, 0.230508],[1564704000000, 0.232807],[1564790400000, 0.239202],[1564876800000, 0.239202],[1564963200000, 0.239202],[1565049600000, 0.242618],[1565136000000, 0.240369],[1565222400000, 0.240381],[1565308800000, 0.238847],[1565395200000, 0.237083],[1565481600000, 0.237083],[1565568000000, 0.237083],[1565654400000, 0.239293],[1565740800000, 0.239124],[1565827200000, 0.238428],[1565913600000, 0.238520],[1566000000000, 0.236463],[1566086400000, 0.236463],[1566172800000, 0.236463],[1566259200000, 0.236206],[1566345600000, 0.236314],[1566432000000, 0.236696],[1566518400000, 0.234952],[1566604800000, 0.235437],[1566691200000, 0.235437],[1566777600000, 0.235437],[1566864000000, 0.235437],[1566950400000, 0.237956],[1567036800000, 0.238551],[1567123200000, 0.237400],[1567209600000, 0.236605]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });