-
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
Radar scriptable options #6041
Radar scriptable options #6041
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @nagix (and thanks for all the unit tests)
@nagix do you want to add a scriptable example for |
As it seems @janelledement agreed to add more examples, I would leave it to her😉. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really good. Maybe some tests may not fail enough in case of change (e.g. the point rotation with a line symbol) but it should be fine.
Background
This PR introduces scriptable configuration options for points on radar charts. The user can script the styling and interaction options.
Testing
The existing unit tests covering the setHoverStyle dataset controller method were removed as they did not have proper setup for use with scriptable options.
Fixture based tests were written to test:
pointBackgroundColor
pointBorderColor
pointBorderWidth
pointRadius
pointRotation
pointStyle
Documentation
I updated the radar chart documentation to match the style of the line charts.