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
Here's what we're going to do for v2, targeting a release in January or February 2020:
switch to native-promise-only and officially drop support for IE9 and IE10
stop exporting D3
stop exporting Plotly.plot
drop area, contourgl and pointcloud traces
drop support for polar plots in scatter (aka "micropolar"?) i.e. scatter.r and scatter.t and layout.angularaxis and layout.radialaxis and anything else related (cc @alexcjohnson anything else I missed?)
For reference, the primary trigger for version 2.0 is the native-promise-only change, with which we fully drop support for IE 9/10, even though that support has been eroding severely over the last couple of years. This change is driven by a desire to remove function constructors from as many of our bundles as possible for security reasons, as tracked in #897. Since we're doing a v2, we're trying to shed as much deprecated stuff as we can without being otherwise too-disruptive.
@alexcjohnson suggested the following, which I approve if they take less than a day:
change isPlainObject - either just drop the second clause or use something like the new one I found in Validation fails when running via JsDom in NodeJs #5151 - in principle this needn’t be a major but it feels a bit risky to me for some straight JS users
drop some other exports: it also may be nice to strip Plotly.Fx to just {hover, unhover, loneHover, loneUnhover} and Plotly.Plots to just {graphJson, resize}
@archmoj can you please provide a list as a comment in this issue of all the methods in our public API that have been dropped, so that folks like @cpsievert can easily grep for them in their own codebases. I've pinged the R/Julia/.Net downstream folks to let them know what's coming and directed them here :)
@archmoj can you please provide a list as a comment in this issue of all the methods in our public API that have been dropped, so that folks like @cpsievert can easily grep for them in their own codebases. I've pinged the R/Julia/.Net downstream folks to let them know what's coming and directed them here :)
Here is a list of Plotly methods that are going to be removed in v2:
Ah ok so in your message above, it's Plotly.Plots.purge that is going away, and that's an alias to Plotly.purge?
Also, in the message above, is Plotly.Plot the same thing as the Plotly.plot() function or something else? unsure if the capitalization matters here :)
Also, in the message above, is Plotly.Plot the same thing as the Plotly.plot() function or something else? unsure if the capitalization matters here :)
Thanks for catching that! I edited the message above so that Plotly.plot is not capital.
we're keeping role: "object" in the schema (because they're useful and consistent) and dropping the other role values (because they're inconsistent and therefore potentially dangerous to use and Plotly.py and docs don't use them)
we're keeping pointcloud and marking it deprecated
Activity
nicolaskruchten commentedon Jan 11, 2021
@alexcjohnson suggested the following, which I approve if they take less than a day:
isPlainObject- either just drop the second clause or use something like the new one I found in Validation fails when running via JsDom in NodeJs #5151 - in principle this needn’t be a major but it feels a bit risky to me for some straight JS usersPlotly.Fxto just{hover, unhover, loneHover, loneUnhover}andPlotly.Plotsto just{graphJson, resize}nicolaskruchten commentedon Jan 11, 2021
Note to self: the plotly.com/javascript docs will need to stop relying on the built-in D3 :)
nicolaskruchten commentedon Jan 20, 2021
@archmoj can you please provide a list as a comment in this issue of all the methods in our public API that have been dropped, so that folks like @cpsievert can easily grep for them in their own codebases. I've pinged the R/Julia/.Net downstream folks to let them know what's coming and directed them here :)
archmoj commentedon Jan 20, 2021
Here is a list of
Plotlymethods that are going to be removed in v2:Milestone: https://github.com/plotly/plotly.js/milestone/60?closed=1
nicolaskruchten commentedon Jan 20, 2021
Hmmm is
Plotly.purge()still around? andPlotly.extendTraces()? I would expect that the only function from this page https://plotly.com/javascript/plotlyjs-function-reference/ to be removed would bePlotly.plot()no? @alexcjohnson confirm your intentions here plz?archmoj commentedon Jan 20, 2021
Yes
Plotly.purge()and `Plotly.extendTraces() are still around.The following methods are unchanged:
nicolaskruchten commentedon Jan 20, 2021
Ah ok so in your message above, it's
Plotly.Plots.purgethat is going away, and that's an alias toPlotly.purge?Also, in the message above, is
Plotly.Plotthe same thing as thePlotly.plot()function or something else? unsure if the capitalization matters here :)archmoj commentedon Jan 20, 2021
Thanks for catching that! I edited the message above so that
Plotly.plotis not capital.archmoj commentedon Jan 20, 2021
No it is not an alias.
Plotly.purge()performs other operations in addition to callingPlotly.Plots.purge()plotly.js/src/plot_api/plot_api.js
Lines 3598 to 3620 in 59390cb
nicolaskruchten commentedon Jan 22, 2021
Updates:
role: "object"in the schema (because they're useful and consistent) and dropping the otherrolevalues (because they're inconsistent and therefore potentially dangerous to use and Plotly.py and docs don't use them)pointcloudand marking it deprecatedheatmapglas deprecateddhirschfeld commentedon Jan 28, 2021
Just wondering if #5230 will make it in 2.0?
archmoj commentedon Jan 28, 2021
I think new features like that could possibly be added in a minor afterwards e.g. v2.x.0