fontSize: Number

Sets the font Size of Chart Title in pixels.

Default: Automatically Calculated based on Chart Size
Example: 16,18,22 ..
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 title:{
  fontSize: 30,
 },
 .
 .
});
chart.render();

Try Editing The Code

  Also See:    


If you have any questions, please feel free to ask in our forums.Ask Question

2 Comments

    • Vishwas R says:

      We checked and observed that fontSize is working fine across all browsers including Edge. Here is the screenshot with fontSize set to 30.

If you have any questions, please feel free to ask in our forums. Ask Question