简体   繁体   English

HighCharts 饼图获取选定切片周围的框

[英]HighCharts Pie chart gets box around selected slices

When rendering my HighChart I sometimes get a blue box around one of the slices.在渲染我的 HighChart 时,有时我会在其中一个切片周围出现一个蓝色框。 This seems to represent the selected slice.这似乎代表了选定的切片。 If I use the keyboard arrows the box moves to the other slices.如果我使用键盘箭头,框会移动到其他切片。 This is how it looks when it renders (sometimes)这是它渲染时的样子(有时)

已选择 Chrome

And then if this happens I can then use the arrow key to change which slice has the box around it like below然后如果发生这种情况,我可以使用箭头键来更改哪个切片周围有框,如下所示

已选择边缘切片

I don't see any reference to this in the documentation for HighCharts or any settings to turn this off.我在 HighCharts 的文档或任何关闭它的设置中没有看到任何对此的引用。 This also only seems to happen when rendering inside of Microsoft.Web.WebView2.WinForms.WebView2 control but I can't be certain.这似乎也只发生在 Microsoft.Web.WebView2.WinForms.WebView2 控件内部渲染时,但我不能确定。 It does not let me cycle through all elements on the control.它不允许我循环浏览控件上的所有元素。 Once Opera has been selected the next time I hit the right arrow Chrome is selected again so I don't think it's the browser cycling through DOM elements.一旦选择了 Opera,下次我点击右箭头时再次选择 Chrome,所以我不认为它是浏览器循环遍历 DOM 元素。

Does anyone have any advice on this?有人对此有什么建议吗?

According to the comments - it seems that the issue was related to the accessibility module - https://www.highcharts.com/docs/accessibility/accessibility-module根据评论 - 似乎问题与可访问性模块有关 - https://www.highcharts.com/docs/accessibility/accessibility-module

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM