plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
17.05k stars 1.87k forks source link

[Feature] Multi Pie "Autodomain" #2909

Closed ebellumat closed 4 months ago

ebellumat commented 6 years ago

When we create dynamic pie charts, it is difficult to calculate the domain of each graph. If you had a property called autodomain for the pie charts to position themselves properly, or some other property that could be defined how many pie charts would be rendered on a line, it would be easier to use.

alexcjohnson commented 6 years ago

Right, like we do for multiple 3D scenes or multiple maps. Worth considering. That said, have you looked at layout.grid? If you use that, you can just specify domain: {row, column} for each pie trace rather than domain: {x, y} which, you're right, is awkward to calculate, but you get the flexibility to decide on side-by-side, top-to-bottom, or any shape of grid.

ebellumat commented 6 years ago

I Will test the layout.grid. But, a "default" grid layout It would be a great help, especially for the beginners. Not removing, of course, the domainquadrant and the layout.grid.

if it does not bother you, can you create a jsFiddle with this layout.grid sample?

alexcjohnson commented 6 years ago

can you create a jsFiddle with this layout.grid sample?

https://codepen.io/alexcjohnson/pen/NBZYpm?editors=0010

ebellumat commented 6 years ago

Oh my god! Much easier! This sample in the docs would be wonderful!

https://plot.ly/javascript/pie-charts/

ebellumat commented 6 years ago

Result in Pivottable JS after changes. I Create a Pie/Donut Chart render.

image

image

image

gvwilson commented 4 months ago

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson