Javascript 如何修复工具提示';在Highcharts中滚动图表的X轴时的位置
我有一个自定义工具提示的折线图,并使用Highcharts库放置x轴滚动条 它运行良好,但是,一旦我移动滚动条,工具提示的位置就不会滚动。 工具提示和滚动条的源代码如下所示:Javascript 如何修复工具提示';在Highcharts中滚动图表的X轴时的位置,javascript,jquery,svg,highcharts,Javascript,Jquery,Svg,Highcharts,我有一个自定义工具提示的折线图,并使用Highcharts库放置x轴滚动条 它运行良好,但是,一旦我移动滚动条,工具提示的位置就不会滚动。 工具提示和滚动条的源代码如下所示: var tooltip = { headerFormat: '<span style="font-size: 14px; color: {point.color}">{series.name}</span><span style
var tooltip = {
headerFormat: '<span style="font-size: 14px; color: {point.color}">{series.name}</span><span
style="font-size: 20px; color: {point.color}">({point.y})</span><br/>',
pointFormatter: function (point) {
return tooltipValue[this.x];
},
footerFormat: "",
}
Highcharts.chart('container', {
chart: {
type: 'spline',
scrollablePlotArea: {
minWidth: 1000,
},
}
});
var工具提示={
headerFormat:“{series.name}({point.y})
”,
pointFormatter:函数(点){
返回tooltipValue[this.x];
},
页脚格式:“”,
}
Highcharts.chart('容器'{
图表:{
类型:“样条线”,
可滚动绘图区:{
最小宽度:1000,
},
}
});
有人能帮我吗?这是一个已经在Highcharts发行频道报道的错误。见: 如果您需要解决方法,请在上面链接下的评论中询问核心开发人员