首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mpld3交互式图例在IE中不起作用

mpld3交互式图例在IE中不起作用
EN

Stack Overflow用户
提问于 2017-07-18 20:35:29
回答 1查看 134关注 0票数 0

我正在使用python中的mpld3库,并且我注意到在internet explorer上交互式图例插件不起作用。

我还注意到,在mpld3网站上,交互式图例的示例在IE中也不起作用。

所以我有点被困在这里了。有帮助吗?you can see on that image that the interactive legend does not work

我还将在此处放置mpld3交互式插件链接:https://mpld3.github.io/examples/interactive_legend.html

EN

回答 1

Stack Overflow用户

发布于 2018-09-26 16:50:55

mpld3/plugins.py中的以下代码行导致IE不兼容:

  • 线路582 var type = d.mpld3_elements[i].constructor.name
  • 线路614 var type = d.mpld3_elements[0].constructor.name

将它们替换为:

  • var type = d.mpld3_elements[i].constructor.toString().match(/^function\s*([^\s(]+)/)[1];
  • var type = d.mpld3_elements[0].constructor.toString().match(/^function\s*([^\s(]+)/)[1];

摘自https://github.com/mpld3/mpld3/issues/191

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45166993

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档