Plotly.js显示错误' Uint8ClampedArray'在Internet Explorer 11中使用时未定义

时间:2017-06-28 08:53:55

标签: browser internet-explorer-11 plotly

我在剧情中创建了一个图表。当我在互联网浏览器中尝试过它时,卡住了。它在图表上显示了enything。当我尝试开发选项时,它会显示' Uint8ClampedArray'未定义。问题是什么?我怎样才能克服这个问题。你能帮我解决这个问题吗?

<html>
<head>
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<title>Untitled</title>
</head>
<body>
<div id="tester" style="width:600px;height:250px;"></div>
<script>
TESTER = document.getElementById('tester');
Plotly.plot( TESTER, [{
x: [1, 2, 3, 4, 5],
y: [1, 2, 4, 8, 16] }], {
margin: { t: 0 } } );
</script>
</body>
</html>

显示的错误如下。 SCRIPT5009:&#39; Uint8ClampedArray&#39;未定义 SCRIPT5009:&#39; Plotly&#39;未定义

1 个答案:

答案 0 :(得分:1)

我已经解决了这个问题。问题出在Internet Explorer上,我已经更新到最新版本。因此它支持Uint8ClampedArray,现在它的工作。

感谢所有考虑我问题的人