feat: add maxValue and checkToShowTick in radarChart
Summary
This PR implements the customization features for RadarChart as discussed in #2002.
Note: This is a follow-up to PR #2007. The previous PR was submitted from the GitHub account artsooter, which is no longer available.
I've created this new PR with a fresh account to implement the feedback.
Changes
-
maxValue parameter: Allows setting a custom maximum value for the RadarChart instead of auto-calculating from data.
-
checkToShowTick callback: Implemented as suggested in the review. This function determines which ticks should be displayed by receiving the tick index, and list of all ticks. Returns a boolean to control visibility. Default behavior shows all ticks except the last one.
-
Documentation: Added descriptions for both parameters to
radar_chart.md.
Documentation
| PropName | Description | default value |
|---|---|---|
| maxValue | Defines a custom maximum value for the [RadarChart]. If provided, this value will be used instead of the automatically calculated maximum from the data. | null |
| checkToShowTick | Determines which ticks should be displayed on the [RadarChart]. By default, shows all ticks except the last one. | showTickWithoutLast |