New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StockChart set rangeSelector: enabled: false, navigator Left a small gap #17212
Comments
hello, @Caesar454905970, thanks for creating the issue. Could you please try to reproduce your example in the demo I shared above? |
thank you! ; |
@Caesar454905970, why did you close the ticket? Is it no longer viable for me to look at? |
@pawellysy,Sorry, I made a mistake,I turned it back on,My answer is up there |
Hi, @Caesar454905970 sorry that I took so long to reply.
The Workaround:You can call |
Internal note: Possible regression, last good tag - v9.0.1, first bad tag - v9.1.0. |
$.getJSON('https://data.jianshukeji.com/stock/history/000001', function (data) {
if(data.code !== 1) {
alert('读取股票数据失败!');
return false;
}
data = data.data;
// 去掉多余的数据
Highcharts.each(data, function(d) {
d.length = 2;
});
Highcharts.stockChart('container', {
rangeSelector: {
enabled: false
},
title: {
text: '平安银行历史股价'
},
plotOptions: {
series: {
showInLegend: true
}
},
xAxis: {
min:data[0][0],
max:data[0][0]+10000000000,
},
tooltip: {
split: false,
shared: true
},
series: [{
// type: 'line',
id: '000001',
name: '平安银行',
data: data
}]
});
});
The text was updated successfully, but these errors were encountered: