$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1538352000000,20.6612],[1538438400000,20.5896],[1538524800000,20.577],[1538611200000,20.5815],[1538697600000,20.4203],[1538784000000,20.3363],[1538870400000,20.3363],[1538956800000,20.3363],[1539043200000,20.284],[1539129600000,20.2479],[1539216000000,20.2486],[1539302400000,20.2844],[1539388800000,20.2888],[1539475200000,20.2888],[1539561600000,20.2888],[1539648000000,20.2888],[1539734400000,20.3218],[1539820800000,20.2862],[1539907200000,20.3342],[1539993600000,20.4587],[1540080000000,20.4587],[1540166400000,20.4587],[1540252800000,20.3567],[1540339200000,20.4209],[1540425600000,20.4349],[1540512000000,20.5462],[1540598400000,20.4188],[1540684800000,20.4188],[1540771200000,20.4188],[1540857600000,20.3961],[1540944000000,20.3498]], 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, 20.661198],[1538352000000, 20.661198],[1538438400000, 20.589595],[1538524800000, 20.577030],[1538611200000, 20.581497],[1538697600000, 20.420257],[1538784000000, 20.336305],[1538870400000, 20.336305],[1538956800000, 20.336305],[1539043200000, 20.283953],[1539129600000, 20.247889],[1539216000000, 20.248574],[1539302400000, 20.284351],[1539388800000, 20.288764],[1539475200000, 20.288764],[1539561600000, 20.288764],[1539648000000, 20.288764],[1539734400000, 20.321830],[1539820800000, 20.286241],[1539907200000, 20.334213],[1539993600000, 20.458706],[1540080000000, 20.458706],[1540166400000, 20.458706],[1540252800000, 20.356744],[1540339200000, 20.420859],[1540425600000, 20.434938],[1540512000000, 20.546177],[1540598400000, 20.418821],[1540684800000, 20.418821],[1540771200000, 20.418821],[1540857600000, 20.396070],[1540944000000, 20.349830]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });