how to redo dynamic chart layout?

Closed
Michael T asked on June 1, 2021

Axis labels with more text are also larger when the text weight is bold.
Attached is a picture showing that when the font-weight styling is added with the afterchartdraw callback, the result is that the spacing is slightly off, making the labels harder to read. 
It is possible to manually trigger chart layout to accommodate for this change? How would I do that?
thanks so much.
Mike

1 answer

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster June 3, 2021

Hi Michael,
 
Thank you for posting your question.
 
You don't have much control over when the chart layout is triggered, so as a workaround, we'd suggest just making the font smaller.
 
See the following sample for illustration: https://jsfiddle.net/flexmonster/7gc5t4p2/.
 
Please let us know if this helps.
 
Best regards,
Mykhailo

This question is now closed