Add FontWeight + Auto color
lamyae-omari opened this issue · comments
Hello,
Is it possible to add FontWeight option for labels ('bold', 'normal'....)?
I am wondering if it's possible to use "auto" color for labels => If set as "auto", the color will assigned as visual color, such as series color?
Thanks
You should use InstallFont
for bold font, and change the font of chart.
The label color can be customized: https://github.com/vicanso/go-charts/blob/main/series.go#L77
Hey Vicanzo, thanks so much for your quick reply
How to assign the same color for a label and its series ?
The colors of series: https://github.com/vicanso/go-charts/blob/main/theme.go#L93
so clear
thank you so much
I will close the issue
Or you can try to use charts-rs, which provides http json call.
Source: https://github.com/vicanso/charts-rs
Demo: https://charts.npmtrend.com/