question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple issues with transforms

See original GitHub issue

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:

      "transforms": [
        {
          "type": "filter",
          "target": [],
          "targetsrc": null
        }
      ]

Results:

scatter3d:

  • filter: many warnings: [.Offscreen-For-WebGL-0x7fef4b0d6800]RENDER WARNING: Render count or primcount is 0.

-> https://codepen.io/etpinard/pen/dgWJZg

scatter3d + marker:’line’

  • filter: 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)

  • any transforms: as I add them to data, they never get added to fullData

choropleth, scatterternary, scatterpolar, pie:

  • aggregate: Error while plotting: TypeError: Cannot set property 'type' of undefined at Object.plots.supplyTransformDefaults

pie:

  • filter: Error: <path> attribute d: Expected number, "MNaN,NaNa189.5,18…".

-> https://codepen.io/etpinard/pen/wYdppB

2d contour histogram:

  • filter: 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:

  • When defining a 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
etpinardcommented, Oct 30, 2018

As far as I can tell, @antoinerg 's https://github.com/plotly/plotly.js/pull/3158 removed the transforms attribute container from all traces that do not support transforms.

0reactions
etpinardcommented, Oct 10, 2018

scatterpolar now looks like:

https://codepen.io/etpinard/pen/YJVYYd

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple transformations (article) | Khan Academy
When you do multiple transformations, the order makes a difference. A rotation followed by a translate followed by a scale will not give...
Read more >
How to apply multiple transforms in CSS? - Stack Overflow
Just start from there that in CSS, if you repeat 2 values or more, always last one gets applied, unless using ! important...
Read more >
Troubleshooting transforms | Elasticsearch Guide [7.17] | Elastic
If you encounter problems with your transforms, you can gather more information from the following files and APIs: Lightweight audit messages are stored...
Read more >
Multiple Transformations of CTS (Solved Problem 1) - YouTube
Signals & Systems: Multiple Transformations of Continuous-Time Signals (Solved Problem 1) Topics Covered:1. Solving problems based on ...
Read more >
Multiple Transformations of CTS (Solved Problem 2) - YouTube
Signals and Systems: Multiple Transformations of Continuous-Time Signals (Solved Problem 2) Topics Discussed:1. Multiple transformations of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found