I am using plotly dash to draw scatter plot with marginal y histogram chart. I tried to implement scatter plot marginals using angular js. but i did not found any solution regarding this in angular plotly.js.Here is my plot
marginal plots python link is https://plotly.com/python/marginal-plots/#scatter-plot-marginals
I want to achieve same in the angular using plotly js. Please provide me the Code or any documentation in plotly.js for angular.
AIMPED
April 21, 2024, 8:16pm
2
Hey @Tirumala welcome to the community!
I think there is no built-in function for this in other languages tahn python.
Marginal plots are “normal” graphs arranged with subplots. It’s cumbersome, but you could create such a graph manually. Related:
TL;DR You can re-create any figure created with px using go, it takes some effort, though
Some explanation:
As far as I know, figures created by plotly.express can be created by plotly.graph_objects as express uses graph_objects under the hood. You might see express as a more user- friendly version of graph_objects which does grouping with pandas or creating subplots for you.
That said, there is no function which adds marginals because they are just traces arranged in subplots.
To get an ide…