-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Multiple issues with transforms #2908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ok. Thanks for the report! What does |
But yeah, we could do better than declaring plotly.js/src/plots/attributes.js Lines 160 to 167 in 7bba266
|
yes, in fullData I see |
Most of these problems occur because Note that Plotly.newPlot(gd, [{
y: [1, 2, 1, 3],
transforms: [{
type: 'filter',
target: []
}]
}], {
showlegend: true
}) has a legend item, whereas Plotly.newPlot(gd, [{
y: [],
}], {
showlegend: true
}) does not, which I believe is correct. Perhaps, the most robust to handle this would be to make transform items with |
|
As far as I can tell, @antoinerg 's #3158 removed the |
- see #2908 for more info, - this fixes many potential problems downstream
I’ve been trying to add transforms to multiple trace types with varying degrees of success. Documentation doesn’t make it clear which trace types support transforms. All I know from discussion with @etpinard, is that anything that takes 2d arrays as input doesn’t support them.
react-chart-editor
as of now does not prepopulate target/targetsrc:Results:
scatter3d:
[.Offscreen-For-WebGL-0x7fef4b0d6800]RENDER WARNING: Render count or primcount is 0.
-> https://codepen.io/etpinard/pen/dgWJZg
scatter3d + marker:’line’
Uncaught (in promise) TypeError: Cannot read property 'slice' of undefined at LinePlot.proto.update
-> https://codepen.io/etpinard/pen/Edmobo
cone, streamtube, scattergeo, table, heatmap (with 1d array input), contour (with 1d array input)
data
, they never get added tofullData
choropleth, scatterternary, scatterpolar, pie:
Error while plotting: TypeError: Cannot set property 'type' of undefined at Object.plots.supplyTransformDefaults
pie:
Error: <path> attribute d: Expected number, "MNaN,NaNa189.5,18…".
-> https://codepen.io/etpinard/pen/wYdppB
2d contour histogram:
Error while plotting: TypeError: Cannot read property 'length' of undefined at makeCrossings (plotly-with-meta.js?ab3a:146042)
Edit:
Add this one to the list:
scatter
with just Y defined, and than add an aggregate:Uncaught TypeError: Cannot set property 'type' of undefined at Object.plots.supplyTransformDefaults
https://codepen.io/dmt0/pen/xJoWoY
This one got fixed in: #3093
The text was updated successfully, but these errors were encountered: