Skip to content
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

Number of quadrants in the Radar pie #6

Open
arash-hajikhani opened this issue May 18, 2023 · 1 comment
Open

Number of quadrants in the Radar pie #6

arash-hajikhani opened this issue May 18, 2023 · 1 comment

Comments

@arash-hajikhani
Copy link

Can the data sheet define the number of quadrants? The default is a pie which has four quadrants. Where to modify so the pie happens to be three pieces for example?

@uwej711
Copy link
Member

uwej711 commented Jun 1, 2023

In

we currently hardcoded the start angles of the "pie slices" to work for 4 slices. The actual drawing in the react component uses the angles set up there.
I think it will be possible to update the implementation of createQuadrants (which then would be named wrongly ...) to work for a different number of slices. Just count how many slices are created, calculate the start angles and update the angles before all quadrants are returned.
As a quick test (or solution for you when you only have three slices), you could change the hard coded angles and check id the drawing is correct. There might be some issues with the zooming when you click on a slice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants