Kozea / Kozea/pygal

Max value font size in solidgauge charts is too small and not configurable

Open
#369 3 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

The solidgauge charts display the value as specified in 'max_value'. However, the rendered PNG has too small a font for the maximum value.
There is no such option to configure the font size of the same.

`import pygal`
`args = {
"half_pie": True,
"inner_radius": 0.70,
"formatter": lambda x: '{0} GiB'.format(x)
}`
`chart = pygal.SolidGauge(**args)`
`chart.add("Serie", 30)`
`chart.render_to_png('gauge.png')`

Output
![gauge](https://cloud.githubusercontent.com/assets/16802795/23307674/60354b2c-face-11e6-8dbf-6f56e9e4a6e2.png)

You should be able to observe a tiny font with a magnifying glass :-)

Contributor guide

Open the contributing guide

Research direction

Start with pygal.SolidGauge and follow the render_to_png('gauge.png') path for the displayed max_value. Determine where the maximum value's font size is set and how chart options are handled. Done means the maximum value is legible in the rendered PNG and its font size can be configured.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.