2

I'm using Pygal's SolidGuage chart to display a value between two ranges. See the link below for an image of the chart.

Pygal Chart Example

I'm trying to make the font size for the labels (0 & 12%) larger.

Does anyone know how I can do this? I can't seem to find the right command in the documentation.

Thanks in advance for all of the help!

4

2 回答 2

3

Try to set font size in constructor

gauge = pygal.SolidGauge(
        half_pie=True, inner_radius=0.70,
        style=pygal.style.styles['default'](value_font_size=8),
        show_legend=False)
于 2017-07-17T08:48:15.507 回答
0

chart = pygal.Bar(style=pygal.style.styles'default')

于 2018-04-26T18:48:06.127 回答