Returns the specified property of legend.
Parameters:var chart = new CanvasJS.Chart("container", { . . legend:{ // Legend properties }, . . }); chart.render(); console.log(chart.legend.get("fontSize"));
Please refer to Legend Element for complete list of properties that can be accessed via get.
Also See: