[英]mpld3 interactive legend does not work in IE
我在python中使用mpld3库,并且我注意到在Internet Explorer上,交互式图例插件不起作用。
我还注意到,在mpld3网站上,交互式图例的示例在IE中也不起作用。
所以我有点卡在这里...有什么帮助吗? 您可以在该图像上看到交互式图例不起作用
我还将在此处放置mpld3交互式插件链接: https ://mpld3.github.io/examples/interactive_legend.html
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];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.