apache / apache/superset

Radar chart label position does not match the selected setting

Open
#37,449 2 comments 0 reactions 0 assignees View on GitHub
viz:charts:radar
Dominant language
Python
Stars
74.8k
Forks
18.3k
Avg merge
2d 5h
Merged PRs (30d)
685

Description

### Bug description

**Summary**
In the Radar chart, the visual placement of data labels does not correspond to the selected label position option (e.g., “Inside Left”, “Inside Bottom Right”). Regardless of the chosen setting, labels appear in the same location—typically above the data point—making the position control ineffective and misleading.

**Steps to Reproduce**
1. Create or edit a chart of type Radar.
2. Go to the Label Position setting in the chart customization panel.
3. Select a position such as:
- **“Inside Left”** → expected: label appears to the left of the data point, inside the polygon.
- **“Inside Bottom Right”** → expected: label appears in the bottom-right quadrant relative to the point.
4. Observe that the label always renders above the point (or in a fixed position), regardless of the selection.

**Expected Behavior**
The label should be positioned exactly as specified by the user:
- **“Inside Left”** → rendered to the left of the data point, within the radar polygon.
- **“Inside Bottom Right”** → rendered toward the bottom-right direction from the point.
Each directional option should produce a visibly distinct and correct placement.

**Impact**
This bug reduces chart readability and undermines user trust in customization controls. It becomes especially problematic when multiple series or dense data points require precise label positioning to avoid overlap or misinterpretation.

### Screenshots/recordings

- Selected position: Inside left (highlighted in red box under Labels > Position).
- Actual label placement: Labels (e.g., 16.5k, 13.7k) appear above the data points — not to the left as configured.
- Red arrow highlights the mismatch: label for p1 axis is positioned vertically above, despite “Inside left” being selected.

Image


- Selected position: Inside bottom right (highlighted in red box under Labels > Position).
- Actual label placement: Labels (e.g., 16.5k, 13.7k) still appear above the data points — not in the bottom-right as configured.
- Red arrow points to the label for p1 axis, which remains positioned vertically above the point, ignoring the selected direction.

Image

### Superset version

5.0.0

### Python version

3.10

### Node version

I don't know

### Browser

Chrome

### Additional context

_No response_

### Checklist

- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Contributor guide

Open the contributing guide

Research direction

Start at the Radar chart in the chart customization panel and trace the Label Position control through label rendering. Reproduce the issue with “Inside Left” and “Inside Bottom Right”, then verify that each option produces its distinct directional placement within the radar polygon.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.