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 it Yourself by Editing the Code below.

  Also See:    



In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.

Comments 2

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

In order to provide better support,we have closed the comments and switched completely to our Forums.
If you have any questions, please feel free to ask in our forums.