Reputation: 3171
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()
Upvotes: 1
Views: 5866
Reputation: 136
try something like this categoryAxis.renderer.labels.template.fontSize = 10;
Upvotes: 3