$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1538352000000,4.10801],[1538438400000,4.10733],[1538524800000,4.1166],[1538611200000,4.12299],[1538697600000,4.10183],[1538784000000,4.08872],[1538870400000,4.08872],[1538956800000,4.08872],[1539043200000,4.05516],[1539129600000,4.0552],[1539216000000,4.04458],[1539302400000,4.04992],[1539388800000,4.03834],[1539475200000,4.03834],[1539561600000,4.03834],[1539648000000,4.03834],[1539734400000,4.04052],[1539820800000,4.02921],[1539907200000,4.04035],[1539993600000,4.06657],[1540080000000,4.06657],[1540166400000,4.06657],[1540252800000,4.04451],[1540339200000,4.05837],[1540425600000,4.0627],[1540512000000,4.08042],[1540598400000,4.06946],[1540684800000,4.06946],[1540771200000,4.06946],[1540857600000,4.05295],[1540944000000,4.04386]], 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, 4.108015],[1538352000000, 4.108015],[1538438400000, 4.107330],[1538524800000, 4.116600],[1538611200000, 4.122994],[1538697600000, 4.101834],[1538784000000, 4.088721],[1538870400000, 4.088721],[1538956800000, 4.088721],[1539043200000, 4.055158],[1539129600000, 4.055203],[1539216000000, 4.044578],[1539302400000, 4.049921],[1539388800000, 4.038337],[1539475200000, 4.038337],[1539561600000, 4.038337],[1539648000000, 4.038337],[1539734400000, 4.040516],[1539820800000, 4.029214],[1539907200000, 4.040354],[1539993600000, 4.066570],[1540080000000, 4.066570],[1540166400000, 4.066570],[1540252800000, 4.044513],[1540339200000, 4.058368],[1540425600000, 4.062700],[1540512000000, 4.080415],[1540598400000, 4.069461],[1540684800000, 4.069461],[1540771200000, 4.069461],[1540857600000, 4.052945],[1540944000000, 4.043862]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });