react-pivottable icon indicating copy to clipboard operation
react-pivottable copied to clipboard

Multiple Pie Chart, Pie Charts have different radii

Open ClassicSours opened this issue 5 years ago • 3 comments

image

This seems to be tied to the number of records per pie chart. And as a result when you start to do groups and aggregations the piecharts stay their same small size, even as groups are created and wedges in the pie charts are made.

image

I'm not sure how to go about fixing this but a work around would be really nice, because this package is really awesome.

ClassicSours avatar Mar 02 '20 22:03 ClassicSours

I've found that this is caused by scalegroup: 1, in PlotlyRenderers.js. Is there anyway to pass this value as a prop to the component?

As it stands I can get around this by altering the text on the line image

ClassicSours avatar Mar 02 '20 22:03 ClassicSours

This is intended as a feature rather than a bug :) You can set the aggregator to Sum as Fraction of Columns to renormalize the radii:

image

nicolaskruchten avatar Mar 06 '20 15:03 nicolaskruchten

Agree this is intended (pie radius reflects magnitude of results represented by the pie). Suggest if this is actioned it’s a configuration rather than a Change to the existing view.

Richisfree avatar Jul 10 '20 09:07 Richisfree