Sets the specified property of legend.
Parameters:var chart = new CanvasJS.Chart("container", { . . legend:{ // Legend properties }, . . }); chart.render(); chart.legend.set("fontColor", "#F084C2");
Please refer to Legend Element for complete list of properties that can be set via this method.
Also See: