Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

Change hover font size for x-axis

I’m trying to get the font size of the x-axis hover text to match the rest of my graph. I was able to change the y-axis hover text with the following CSS code, however, it did not change the x-axis text.

.hovertext text {
font-size: 10px !important; 

Any ideas on how to change the x-axis font size?

I have the same issue as this poster. Their sample code.


.axistext text {
font-size: 10px !important; 
1 Like

Worked perfectly. Thanks so much!