victory icon indicating copy to clipboard operation
victory copied to clipboard

Keeping Font Size Consistent in Charts with Different Sizes

Open clemwo opened this issue 8 months ago • 1 comments

I'm using multiple Victory charts of various sizes on a single page and I'm facing an issue with keeping the font size consistent across these charts. Specifically, I want the tickLabels font size to remain the same, no matter the chart size or when the browser window is resized.

Is there a way to prevent the font size from adjusting with the chart or browser size? I've tried setting a specific font size, but it still changes when I resize the window.

Thanks for your help!

Edit. After a long search, I found this issue which seems to relate a lot. If I have a proper solution I'll get back and report here #396

clemwo avatar Dec 19 '23 10:12 clemwo

You could try using a custom axis Label which allows you to control the style.

ref: https://formidable.com/open-source/victory/docs/victory-axis#axislabelcomponent

carbonrobot avatar Dec 19 '23 19:12 carbonrobot

Please reopen if you have additional information or questions.

carbonrobot avatar Feb 22 '24 16:02 carbonrobot