reactjs - 当另一个 div 位于图表上时,保持 highcharts 图例响应
问题描述
我想在 HighCharts 极坐标图边距的四个角上显示 html 按钮。我能够使用 css 在图表 div 上分层按钮。但是,这样做会导致图表图例项不响应鼠标单击。
这是其中一个按钮的代码示例:
<div className="pop-chart-button pop-chart-button-top pop-chart-button-left">
<a role="button" onClick={this.showBrandQuadrantChart}>
<img src={expandImageUrl} alt="expand" /> BRAND
</a>
</div>
有什么方法可以做到这一点,不会使图例项目对鼠标单击没有响应?
解决方案
只需在没有看到 CSS 代码的情况下进行猜测,按钮 z-index 就在图表下方。将按钮设置为更高的 z-index 可能会解决此问题。
推荐阅读
- methods - 是否可以在参数列表中解构 self 上无可辩驳的模式?
- java - java中一个四核CPU可以同时开启多少个并发线程,规则是什么?
- apache-ranger - Hive 表上的 Apache Ranger 行级过滤策略
- typescript - 打字稿:从函数定义派生接口
- debugging - GDB:以 LD_LIBRARY_PATH/LD_PRELOAD 启动的调试程序
- c# - 打开多个选项卡时注销时的奇怪行为
- python - sqlalchemy.exc.NoReferencedTableError 上的多对一关系
- git - 如何指定 Azure DevOps 构建代理使用的 git 可执行文件
- android - 推送通知配置错误 - React Native
- asp.net - 单击时asp LinkButton不会产生代码