[英]Highcharts - stop Y axis value change on redraw
When the graph redraws (zoom or resize), the Y axis values change (the max value changes) leaving a big white gap on the top of the graph (no data). 当图形重绘(缩放或调整大小)时,Y轴值会发生变化(最大值会发生变化),图形顶部会留下一个大的白色间隙(无数据)。
Here's a JsFiddle of the problem (with both real and fake data, same result) and some pictures of my actual graph . 这是问题的JsFiddle (包括真实数据和假数据,结果相同)和我实际图形的一些图片 。
These are my options for that chart : 这些是我对该图表的选择:
var chartOptions = {
title: false,
xAxis: {
lineWidth: 0,
type: 'datetime'
},
yAxis: [{
lineWidth: 0,
},
{
lineWidth: 0,
opposite: true,
}],
tooltip: {
shared: true
},
series: [{
name: 'A',
yAxis: 0,
type : "area",
},
{
name: 'B',
yAxis: 1,
type : "area",
},
{
name: 'C',
type : "spline",
yAxis: 0,
}],
plotOptions: {
area: {
threshold: null
},
},
chart: {
zoomType: 'x',
},
legend: {
enabled: false
},
};
You can set alignTicks as false. 您可以将alignTicks设置为false。 Example: http://jsfiddle.net/b1vrvn2q/9
示例: http : //jsfiddle.net/b1vrvn2q/9
chart: {
zoomType: 'x',
alignTicks:false
},
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.