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:    



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

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.

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