maxWidth: Number

Sets the maximum width of title after which it gets wrapped or clipped depending on whether wrap is set to true (default) or false.


Default: Automatically calculated based on the chart size.
Example: 200, 500 etc.

var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 title:{
   maxWidth: 200
 },
 .
 .
});
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