$(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: [[1498867200000,3.83768],[1498953600000,3.83768],[1499040000000,3.83768],[1499126400000,3.8255],[1499212800000,3.82511],[1499299200000,3.83994],[1499385600000,3.83116],[1499472000000,3.82748],[1499558400000,3.82748],[1499644800000,3.82748],[1499731200000,3.82156],[1499817600000,3.81828],[1499904000000,3.81712],[1499990400000,3.82842],[1500076800000,3.83616],[1500163200000,3.83616],[1500249600000,3.83616],[1500336000000,3.83561],[1500422400000,3.84127],[1500508800000,3.84154],[1500595200000,3.82956],[1500681600000,3.82508],[1500768000000,3.82508],[1500854400000,3.82508],[1500940800000,3.82567],[1501027200000,3.828],[1501113600000,3.83241],[1501200000000,3.84311],[1501286400000,3.84341],[1501372800000,3.84341],[1501459200000,3.84341]], 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: [[1498867200000, 3.837677],[1498867200000, 3.837677],[1498953600000, 3.837677],[1499040000000, 3.837677],[1499126400000, 3.825499],[1499212800000, 3.825112],[1499299200000, 3.839940],[1499385600000, 3.831161],[1499472000000, 3.827479],[1499558400000, 3.827479],[1499644800000, 3.827479],[1499731200000, 3.821557],[1499817600000, 3.818281],[1499904000000, 3.817120],[1499990400000, 3.828415],[1500076800000, 3.836158],[1500163200000, 3.836158],[1500249600000, 3.836158],[1500336000000, 3.835609],[1500422400000, 3.841271],[1500508800000, 3.841539],[1500595200000, 3.829564],[1500681600000, 3.825075],[1500768000000, 3.825075],[1500854400000, 3.825075],[1500940800000, 3.825671],[1501027200000, 3.827996],[1501113600000, 3.832405],[1501200000000, 3.843114],[1501286400000, 3.843412],[1501372800000, 3.843412],[1501459200000, 3.843412]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });