You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like that should be typeof window.Uint8ClampedArray so that it doesn't just fail in strict mode.
Edit: Interesting… looks like their code is not strict mode, but plotly.js's browserified version is. Could that be the cause? (Could fix this in a hacky manner by adding window.Uint8ClampedArray = window.Uint8ClampedArray || undefined basically anywhere, but that's… just too ugly)
Can't reference dist files since too big, so I'm looking at this from plotly-basic.js. It looks exactly the same in v1.0.0 (well, @version 3.0.2 there, but the relevant part hasn't changed.)
10193(function(process,global){10194/*!10195 * @overview es6-promise - a tiny implementation of Promises/A+.10196 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)10197 * @license Licensed under MIT license10198 * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE10199 * @version 3.1.210200 */1020110202(function(){10203"use strict";10204functionlib$es6$promise$utils$$objectOrFunction(x){10205returntypeofx==='function'||(typeofx==='object'&&x!==null);10206}10207...10259// test for web worker but not in IE1010260varlib$es6$promise$asap$$isWorker=typeofUint8ClampedArray!=='undefined'&&10261typeofimportScripts!=='undefined'&&10262typeofMessageChannel!=='undefined';
(Not to indicate it's any fault of yours but to get to the root of the cause,) @TanyaShen-BEA is it possible that you're using a very old version of IE11?
I've got the same behavior.
Reproducible with the public accessible VMs of Microsoft. I've wanted to test my plots with IE10, bit seems the Win-Version is too old then?
@vikasmanze Sometimes very similar looking errors can have very difficult causes. Which version of plotly are you using? Which version of IE? Can you use plotly-latest.js instead of plotly-latest.min.js and paste the error as well as well as the source of the error? (an error in a minified file is not very informative!) Thanks!
This happens on all versions of IE I tested, and all versions of Plotly.
Here is my inelegant workaround. It is working so far with relatively simple charts, but may cause side effects on more complex ones if Plotly actually tries to use a clamped array.
//ugly IE workaround
if (typeof Uint8ClampedArray == 'undefined'){
//just define it as a regular array
Uint8ClampedArray = function(){return []};
}
$.getScript('plotly-latest.min.js', showChart);
A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
Sponsorship range: $5k-$10k
What Sponsorship includes:
Completion of this feature to the Sponsor's satisfaction, in a manner coherent with the rest of the Plotly.js library and API
Tests for this feature
Long-term support (continued support of this feature in the latest version of Plotly.js)
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson
Activity
etpinard commentedon Sep 1, 2016
Yikes.
What trace type are you trying to plot? Would you mind sharing a reproducible example?
rreusser commentedon Sep 1, 2016
Looks like the only place it occurs in the plotly source comes from es6-promise. See: https://github.com/stefanpenner/es6-promise/blob/9fef04c77d94b1d1ff2e65180fad96c3d806db72/lib/es6-promise/asap.js#L35
I feel like that should be
typeof window.Uint8ClampedArrayso that it doesn't just fail in strict mode.Edit: Interesting… looks like their code is not strict mode, but plotly.js's browserified version is. Could that be the cause? (Could fix this in a hacky manner by adding
window.Uint8ClampedArray = window.Uint8ClampedArray || undefinedbasically anywhere, but that's… just too ugly)etpinard commentedon Sep 1, 2016
Thanks for the info @rreusser !
Interesting. We've been using that
es6-promisepolyfill ever since the1.0.0release and this is the first report we get.Maybe
es6-promiseconflicts with something else on @TanyaShen-BEA 's page.rreusser commentedon Sep 1, 2016
Can't reference dist files since too big, so I'm looking at this from
plotly-basic.js. It looks exactly the same inv1.0.0(well,@version 3.0.2there, but the relevant part hasn't changed.)rreusser commentedon Sep 1, 2016
Hmm…
Uint8ClampedArraysupported since KB2929437, which was a security update released 04/08/2014.(Not to indicate it's any fault of yours but to get to the root of the cause,) @TanyaShen-BEA is it possible that you're using a very old version of IE11?
sekrell commentedon Nov 14, 2016
I've got the same behavior.
Reproducible with the public accessible VMs of Microsoft. I've wanted to test my plots with IE10, bit seems the Win-Version is too old then?
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI
DDF-2644 Adds cross browser support to Catalog UI (#1610)
vikasmanze commentedon Mar 31, 2017
I am also geting below error on trying to draw basic graph
File: plotly-latest.min.js, Line: 7, Column: 31139
Please suggest!
rreusser commentedon Mar 31, 2017
@vikasmanze Sometimes very similar looking errors can have very difficult causes. Which version of plotly are you using? Which version of IE? Can you use
plotly-latest.jsinstead ofplotly-latest.min.jsand paste the error as well as well as the source of the error? (an error in a minified file is not very informative!) Thanks!warrenspe commentedon Sep 14, 2017
I am getting a similar error as well, emulating IE 10 via IE 11 (11.1480.14393.0). Error below:
This browser lacks typed array (Uint8Array) support which is required by
bufferv5.x. Usebufferv4.x if you require old browser support.'Uint8ClampedArray' is undefined
plotly.js (73594,1)
According to caniuse, Uint8ClampedArrays are not supported by IE 10
Edit: And I'm using Plotly version: "1.30.0"
Edit2: However it also occurs on the most recent version, 1.30.1
The code in question:
aaron5555 commentedon Oct 24, 2017
This happens on all versions of IE I tested, and all versions of Plotly.
Here is my inelegant workaround. It is working so far with relatively simple charts, but may cause side effects on more complex ones if Plotly actually tries to use a clamped array.
JewelsJLF commentedon Jul 2, 2018
I'm still getting this issue in v1.38.3 ...... are there any plans to fix this?
kgrpti commentedon Jul 9, 2018
Look at https://community.plot.ly/t/error-loading-dependencies-in-ie-and-older-chrome-51/9426/15
yemling commentedon Jul 3, 2019
Hi folks. Weirdly this looks like it's working in IE11 now, but not the older versions. Is this expected?
DDF-2644 Adds cross browser support to Catalog UI (#1610)
AniWar commentedon Dec 5, 2019
I'm facing the same issue on IE-11 and plotly-v1.50.1.min.js . I'm using trace type "scatter3d" .
jackparmer commentedon Sep 10, 2020
This issue has been tagged with
NEEDS SPON$ORA community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort.
Sponsorship range: $5k-$10k
What Sponsorship includes:
Please include the link to this issue when contacting us to discuss.
gvwilson commentedon Jun 5, 2024
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson