victory
victory copied to clipboard
Keeping Font Size Consistent in Charts with Different Sizes
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
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
Please reopen if you have additional information or questions.