$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1538352000000,39.4436],[1538438400000,39.3787],[1538524800000,39.3479],[1538611200000,39.456],[1538697600000,39.1721],[1538784000000,39.071],[1538870400000,39.071],[1538956800000,39.071],[1539043200000,39.0754],[1539129600000,39.0164],[1539216000000,38.9919],[1539302400000,39.0798],[1539388800000,39.0228],[1539475200000,39.0228],[1539561600000,39.0228],[1539648000000,39.0228],[1539734400000,39.0251],[1539820800000,38.9393],[1539907200000,39.0594],[1539993600000,39.1815],[1540080000000,39.1815],[1540166400000,39.1815],[1540252800000,39.0657],[1540339200000,39.1287],[1540425600000,39.1289],[1540512000000,39.2924],[1540598400000,39.1118],[1540684800000,39.1118],[1540771200000,39.1118],[1540857600000,39.0742],[1540944000000,38.9278]], 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, 39.443645],[1538352000000, 39.443645],[1538438400000, 39.378651],[1538524800000, 39.347889],[1538611200000, 39.455997],[1538697600000, 39.172063],[1538784000000, 39.071048],[1538870400000, 39.071048],[1538956800000, 39.071048],[1539043200000, 39.075366],[1539129600000, 39.016360],[1539216000000, 38.991909],[1539302400000, 39.079775],[1539388800000, 39.022823],[1539475200000, 39.022823],[1539561600000, 39.022823],[1539648000000, 39.022823],[1539734400000, 39.025086],[1539820800000, 38.939280],[1539907200000, 39.059353],[1539993600000, 39.181503],[1540080000000, 39.181503],[1540166400000, 39.181503],[1540252800000, 39.065672],[1540339200000, 39.128673],[1540425600000, 39.128881],[1540512000000, 39.292380],[1540598400000, 39.111805],[1540684800000, 39.111805],[1540771200000, 39.111805],[1540857600000, 39.074226],[1540944000000, 38.927825]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });