Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
cyculpin
Contributor
Contributor

Setting a font family in a theme

Hi all.

I would like to set a new font-family in my charts for axes labels

The standard Qlik fonts are rendered in a canvas object which means they are not editable using css.

The theme json allows font-size and font-color, but does not appear to offer a way to change the font-family.

However this page in the docs says that you can change the font.

I am unable to find further documentation on how to do so.

Through some googling I have found this site https://statsregnskapet.dfo.no/ which uses Qlik charts and uses a custom font in the labels in the axes - which is what I need to do.

Please could someone advise how this is possible?

Labels (4)
2 Replies
Vegar
MVP
MVP

Have you tried to set the font to the body tag in your css like this?

body{
	font-family: sans-serif;	
}

 

cyculpin
Contributor
Contributor
Author

As far as I can see, the stylesheet is optional and just loads with the theme on the client side and seems like doesn't have any affect to the charts and graphs?

I can overrride the text elements from Qlik with my local stylesheet (CSS) but the labels in the charts are rendered in canvas and css does not style those.