imaNNeo / imaNNeo/fl_chart

Feature Request - Add value labels at RadarChart vertices

Open
#1,886 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

hi, thanks for very nice package.

Currently, to display value labels at each vertex of the RadarChart, we need to implement a custom solution using CustomPaint. This approach requires additional code and maintenance, and it's a common requirement that could be standardized within the package.

**Describe the solution you'd like**
I propose adding built-in support for value labels at RadarChart vertices through the RadarChartData configuration. The implementation could include:
```dart
RadarChartData(
// ... other properties ...
getValueLabel: (index, entry) => RadarValueLabel(
text: entry.value.toStringAsFixed(1),
),
valueLabelTextStyle: TextStyle(
fontSize: 12,
color: Colors.black,
),
)
```

**Describe alternatives you've considered**
1. Current CustomPaint approach - Inconsistent with package design
2. Modifying the existing title system - Would complicate its purpose
3. Adding properties directly to RadarEntry

**Additional context**
Screenshot of the desired UI:

Contributor guide

Open the contributing guide

Research direction

Start by reading RadarChartData and the existing RadarChart CustomPaint approach, including how the current title system is configured. Done means value labels can be configured at RadarChart vertices with their text and style without requiring a custom solution, with behavior matching the requested example.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.