$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1538352000000,21.7242],[1538438400000,22.0244],[1538524800000,22.061],[1538611200000,22.0675],[1538697600000,21.8966],[1538784000000,21.743],[1538870400000,21.743],[1538956800000,21.743],[1539043200000,21.6154],[1539129600000,21.6076],[1539216000000,21.6028],[1539302400000,21.4489],[1539388800000,21.4721],[1539475200000,21.4721],[1539561600000,21.4721],[1539648000000,21.4721],[1539734400000,21.5606],[1539820800000,21.5205],[1539907200000,21.4912],[1539993600000,21.6262],[1540080000000,21.6262],[1540166400000,21.6262],[1540252800000,21.4541],[1540339200000,21.4726],[1540425600000,21.565],[1540512000000,21.7202],[1540598400000,21.4989],[1540684800000,21.4989],[1540771200000,21.4989],[1540857600000,21.5173],[1540944000000,21.4367]], 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, 21.724158],[1538352000000, 21.724158],[1538438400000, 22.024371],[1538524800000, 22.061025],[1538611200000, 22.067476],[1538697600000, 21.896587],[1538784000000, 21.742961],[1538870400000, 21.742961],[1538956800000, 21.742961],[1539043200000, 21.615363],[1539129600000, 21.607649],[1539216000000, 21.602825],[1539302400000, 21.448868],[1539388800000, 21.472073],[1539475200000, 21.472073],[1539561600000, 21.472073],[1539648000000, 21.472073],[1539734400000, 21.560636],[1539820800000, 21.520478],[1539907200000, 21.491214],[1539993600000, 21.626250],[1540080000000, 21.626250],[1540166400000, 21.626250],[1540252800000, 21.454146],[1540339200000, 21.472641],[1540425600000, 21.565031],[1540512000000, 21.720204],[1540598400000, 21.498900],[1540684800000, 21.498900],[1540771200000, 21.498900],[1540857600000, 21.517259],[1540944000000, 21.436716]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });