I've noticed that the chart object has a fontSize
property, but just changing it does nothing, even with invalidateSize()
or validateNow()
;
I need it to be dynamically as I don't have access to the chart's creation code.
This is for AmCharts 3
Code I've tried (does nothing) :
const chart = AmCharts.charts[0];
chart.fontSize = 25;
chart.validateNow();
chart.invalidateSize()
试试这个 categoryAxis.renderer.labels.template.fontSize = 10;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.