-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Circular radar chart with labels #3082
Comments
That sounds like a good feature. I think there could be some improvements as you suggest, but off the top of my head I don't know what exactly they would be |
… new settings. gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines #3082 pointLabels.display is a new option that toggles the display of point labels. The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings. This required changing the default polar area config.
… new settings. gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines #3082 pointLabels.display is a new option that toggles the display of point labels. The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings. This required changing the default polar area config.
… new settings. gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines #3082 pointLabels.display is a new option that toggles the display of point labels. The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings. This required changing the default polar area config.
@damienmoulard How did you create this chart ? Can you paste the configuration settings if you have it now. Thanks |
… new settings. gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines chartjs#3082 pointLabels.display is a new option that toggles the display of point labels. The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings. This required changing the default polar area config.
@damienmoulard @etimberg Hey there! How would we use this option in radar charts? |
For people who want to switch from straight gridlines in the radar chart to circular ones:
|
I wrote a sample https://jsfiddle.net/5quzhwmc/1/
and
|
… new settings. gridLines.circular is a new option that toggles circular lines. This allows radar charts with circular lines chartjs#3082 pointLabels.display is a new option that toggles the display of point labels. The existing angleLines.display is used with the new pointLabels.display setting is used to trigger the radar like settings. This required changing the default polar area config.
Hi,
Not really an issue but more of a little new feature: I needed to have a circular radar chart but with labels outside the chart like the regular radar chart (see the result below), and I couldn't find a way to do this with the available options.
Expected result
After taking a look into the code I figured that it couldn't be done when the parameter
scale.lineArc
is true... this being the parameter that sets the chart circular :(To fix this I added a new boolean parameter so I can pass the condition when
scale.lineArc
is true,scale.lineArcWithLabels
, and changed a bit the code inLinearRadialScale.draw
by replacing:with:
It was enough for me, there is maybe a cleaner way to do this but I didn't dive much more than that into the code. Just suggesting a new feature here since I needed it!
The text was updated successfully, but these errors were encountered: