BUG : scatterbar url not updated after newPlot/react on other url.
See original GitHub issueWhen I have a Graph with a scatterbar in page /test_1 and after I go in page /test_2 without reloading the whole page (Angular app) but I use newPlot or react for updating the graph, then the scatterbar isn’t display correctly because the <rect> inside has a reference for fill to the url /test_1.

Step :
- I’m in my url :
http://localhost:4200/modelling/e6e0cbe7-1719-47d3-af8e-e2061f247ccb, The graph 1 is displayed correctly. The url in the fill is set correctly.
- I change the url to
http://localhost:4200/modelling/803e7203-dbdb-4c3e-bed3-8c00738ec3e4, And I update the plotly graph withreactmethod (when I usenewPlotmethod, it doesn’t work either) the graph 2 is displayed with a wrong colorbar. The url uses the last url and not the new one.
To help the contributors,
cbfill is referenced here and here
EDIT : It’s was done with : "plotly.js-basic-dist": "^1.48.3"
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
React router changes url but not view - Stack Overflow
When I use the url /details my browser navigates to that url, but does not change the view. Any other route throws 404...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

related: https://github.com/plotly/plotly.js/issues/3700
A quick workaround that fixed this issue on my angular 10 app.
working example https://angular-p5cfqd.stackblitz.io