我正在使用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
发布于 2018-09-26 16:50:55
mpld3/plugins.py中的以下代码行导致IE不兼容:
var type = d.mpld3_elements[i].constructor.name 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://stackoverflow.com/questions/45166993
复制相似问题