Kozea / Kozea/pygal

Bar chart labels are not styled properly

Open
#509 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Hi!

If you render a bar chart with *these* options:

```python
config = pygal.Config()
config.print_values = True
config.print_values_position = "top"
config.style = pygal.style.DarkStyle
config.value_colors = ('white',)
```

then the value color is not set properly. On output the style for the labels does not have any label color.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the Python configuration shown and inspect how bar-chart value labels receive their styles. Done means labels rendered with print_values_position="top" use the configured value_colors entry, including with DarkStyle; the payload names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.