Sign in to follow this  
alex_dunn

Chart Export changes font in Chart

Recommended Posts

I have rendered a chart using the baseFont:'arial' (sans-serif) and it looks as I want it to, but when I export the chart (to any of the supported formats) the font of the axis labels and the labels changes to a serif font.

I usually have the font set by a theme, but have also tried setting the fonts explicitly i the JSON, as well as setting the x/yaxisnamefont and legenditemfont to arial.

Does anyone have any idea why this happens, and how I can fix it?

 

JS chart

post-68988-0-07831800-1461832114_thumb.png

Exported Chart

post-68988-0-57674400-1461833747_thumb.png

 

Share this post


Link to post
Share on other sites

In addition to the above, i have looked at the resulting svg text and found that the font-family attribute is missing for the elements that are not originally displaying the font I had defined. 

Also of note is that I am using client-side export.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this