$(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: [[1522540800000,4.18404],[1522627200000,4.18404],[1522713600000,4.1608],[1522800000000,4.18953],[1522886400000,4.16496],[1522972800000,4.13412],[1523059200000,4.12785],[1523145600000,4.12785],[1523232000000,4.12785],[1523318400000,4.12785],[1523404800000,4.13017],[1523491200000,4.12602],[1523577600000,4.13456],[1523664000000,4.15936],[1523750400000,4.15936],[1523836800000,4.15936],[1523923200000,4.15208],[1524009600000,4.15134],[1524096000000,4.16209],[1524182400000,4.17836],[1524268800000,4.16055],[1524355200000,4.16055],[1524441600000,4.16055],[1524528000000,4.14108],[1524614400000,4.15134],[1524700800000,4.15464],[1524787200000,4.14708],[1524873600000,4.13217],[1524960000000,4.13217],[1525046400000,4.13217]], 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: [[1522540800000, 4.184039],[1522540800000, 4.184039],[1522627200000, 4.184039],[1522713600000, 4.160804],[1522800000000, 4.189530],[1522886400000, 4.164959],[1522972800000, 4.134120],[1523059200000, 4.127848],[1523145600000, 4.127848],[1523232000000, 4.127848],[1523318400000, 4.127848],[1523404800000, 4.130169],[1523491200000, 4.126023],[1523577600000, 4.134558],[1523664000000, 4.159359],[1523750400000, 4.159359],[1523836800000, 4.159359],[1523923200000, 4.152078],[1524009600000, 4.151342],[1524096000000, 4.162087],[1524182400000, 4.178363],[1524268800000, 4.160552],[1524355200000, 4.160552],[1524441600000, 4.160552],[1524528000000, 4.141080],[1524614400000, 4.151339],[1524700800000, 4.154639],[1524787200000, 4.147075],[1524873600000, 4.132173],[1524960000000, 4.132173],[1525046400000, 4.132173]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });