$(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: [[1538352000000,0.249373],[1538438400000,0.247589],[1538524800000,0.248283],[1538611200000,0.248756],[1538697600000,0.246797],[1538784000000,0.246618],[1538870400000,0.246618],[1538956800000,0.246618],[1539043200000,0.247785],[1539129600000,0.248058],[1539216000000,0.24728],[1539302400000,0.24917],[1539388800000,0.248666],[1539475200000,0.248666],[1539561600000,0.248666],[1539648000000,0.248666],[1539734400000,0.249096],[1539820800000,0.248692],[1539907200000,0.249198],[1539993600000,0.250482],[1540080000000,0.250482],[1540166400000,0.250482],[1540252800000,0.248983],[1540339200000,0.250931],[1540425600000,0.250307],[1540512000000,0.252186],[1540598400000,0.252244],[1540684800000,0.252244],[1540771200000,0.252244],[1540857600000,0.250917],[1540944000000,0.249677]], 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: [[1538352000000, 0.249373],[1538352000000, 0.249373],[1538438400000, 0.247589],[1538524800000, 0.248283],[1538611200000, 0.248756],[1538697600000, 0.246797],[1538784000000, 0.246618],[1538870400000, 0.246618],[1538956800000, 0.246618],[1539043200000, 0.247785],[1539129600000, 0.248058],[1539216000000, 0.247280],[1539302400000, 0.249170],[1539388800000, 0.248666],[1539475200000, 0.248666],[1539561600000, 0.248666],[1539648000000, 0.248666],[1539734400000, 0.249096],[1539820800000, 0.248692],[1539907200000, 0.249198],[1539993600000, 0.250482],[1540080000000, 0.250482],[1540166400000, 0.250482],[1540252800000, 0.248983],[1540339200000, 0.250931],[1540425600000, 0.250307],[1540512000000, 0.252186],[1540598400000, 0.252244],[1540684800000, 0.252244],[1540771200000, 0.252244],[1540857600000, 0.250917],[1540944000000, 0.249677]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });