fl_chart icon indicating copy to clipboard operation
fl_chart copied to clipboard

feat: add maxValue and checkToShowTick in radarChart

Open artshooter opened this issue 1 month ago • 0 comments

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

  1. maxValue parameter: Allows setting a custom maximum value for the RadarChart instead of auto-calculating from data.

  2. 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.

  3. 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

artshooter avatar Oct 27 '25 15:10 artshooter