$(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: [[1522540800000,20.06],[1522627200000,20.06],[1522713600000,19.9486],[1522800000000,20.1107],[1522886400000,19.9805],[1522972800000,19.8334],[1523059200000,19.7307],[1523145600000,19.7307],[1523232000000,19.7307],[1523318400000,19.7307],[1523404800000,19.8175],[1523491200000,19.814],[1523577600000,19.8223],[1523664000000,19.9146],[1523750400000,19.9146],[1523836800000,19.9146],[1523923200000,19.8955],[1524009600000,19.9053],[1524096000000,19.9506],[1524182400000,20.0352],[1524268800000,19.9252],[1524355200000,19.9252],[1524441600000,19.9252],[1524528000000,19.7507],[1524614400000,19.7909],[1524700800000,19.7609],[1524787200000,19.7737],[1524873600000,19.7552],[1524960000000,19.7552],[1525046400000,19.7552]], 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, 20.059977],[1522540800000, 20.059977],[1522627200000, 20.059977],[1522713600000, 19.948582],[1522800000000, 20.110731],[1522886400000, 19.980496],[1522972800000, 19.833411],[1523059200000, 19.730693],[1523145600000, 19.730693],[1523232000000, 19.730693],[1523318400000, 19.730693],[1523404800000, 19.817522],[1523491200000, 19.814027],[1523577600000, 19.822333],[1523664000000, 19.914625],[1523750400000, 19.914625],[1523836800000, 19.914625],[1523923200000, 19.895468],[1524009600000, 19.905266],[1524096000000, 19.950641],[1524182400000, 20.035160],[1524268800000, 19.925217],[1524355200000, 19.925217],[1524441600000, 19.925217],[1524528000000, 19.750712],[1524614400000, 19.790945],[1524700800000, 19.760886],[1524787200000, 19.773695],[1524873600000, 19.755168],[1524960000000, 19.755168],[1525046400000, 19.755168]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });