Sets the maximum height of legend. Once the maximum height is reached, remaining legend items are not shown when horizontally stacked (while on top or bottom or plotArea) and a new column is created when items are vertically stacked (when displayed to the left or right of plotArea).
Default: Automatically calculated based on chart size.var chart = new CanvasJS.Chart("container",
{
.
.
legend:{
maxHeight: 200,
},
.
.
});
chart.render();
Also See: