fontWeight: String

Sets the Font Weight of Legend Text.

Default: “bold”
Example: “lighter”, “normal”, “bold” , “bolder”
var  chart =  new  CanvasJS.Chart("container",
{
 .
 .
 legend:{
    fontWeight: "bold",
 },
 .
 .
});
chart.render();

Try Editing The Code

  Also See:    


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