When dockInsidePlotArea is set to true, legend renders inside the plot area there by giving more space to plot area.
Default: falsevar chart = new CanvasJS.Chart("container",
{
.
.
legend:{
dockInsidePlotArea: true
},
.
.
});
chart.render();
Comment
So much info in so few words. Tootsly could learn a lot.