-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RadialBarSeries with rounded ends looks ugly when some legends are hidden #2105
Comments
Hi @Abhijit-Revamp, We have validated your query and would like to inform you that in the RadialBarSeries, the segment ring size is calculated based on the number of visible data points, radius and widget available size. When the legend is toggled, the remaining segments will always expand to fill the entire radial bar space. This is the default behavior of the RadialBarSeries. To reduce the outer radius of the series, we recommend adjusting the radius settings, which will modify the default radius of the RadialBarSeries. For more details about radius, refer to the following UserGuide link. Regards, |
@Baranibharathip Thanks. I had a look at that. However my data is dynamic and so are my legends. |
Hi @Abhijit-Revamp, We have validated your query and we would like to inform you that We have achieved your requirement using a workaround sample. In the sample, we dynamically update the inner radius of the radial bar series by checking the visible segment count in the onLegendTapped callback. We have shared code snippet and demo for your reference.
Demo: Recording.2025-01-27.112524.mp4Sample: GH_2105.zip Regards, |
Please open this issue, if you need further assistance on this. |
Bug description
Hiding points (via legends) in a RadialBarSeries with circular ends looks ugly when only 1 or 2 are visible.
Not sure if setting "maximumValue" on RadialBarSeries has more impact,
The shape becomes thick and looks bad when
cornerStyle: CornerStyle.bothCurve,
or
cornerStyle: CornerStyle.endCurve,
See the attached images
You can reproduce this in the samples:
Steps to reproduce
Code sample
Code sample
[Add your code here]
Screenshots or Video
Screenshots / Video demonstration
All points visible
With only 1 point visible
Same with `cornerStyle: CornerStyle.bothCurve`
One more
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Web
Flutter Doctor output
Doctor output
[Add your output here]
The text was updated successfully, but these errors were encountered: