Can I use web fonts with ZingChart?

Yes, you can definitely use web fonts in ZingChart. The first step is to include the font into your html page.


<link href='' rel='stylesheet' type='text/css'>


 Next, You will want to specify the font family in each object you have text in: For example, title, subtitle, etc. You could also set it for everything in the chart in the "globals" object. 

  fontFamily:'Josefin Sans',

You can also add the font defined for your chart in the render method and it will give you the same results! Whatever looks aesthetically better to you, choose that method for rendering your font.

    fontFamily:'Josefin Sans'

Have more questions? Submit a request


Please sign in to leave a comment.