Sets the fontStyle of Legend Text. fontStyle can be set to one of the below options.
var chart = new CanvasJS.Chart("container", { . . legend:{ fontStyle: "italic", }, . . }); chart.render();
Also See: