This property lets you align the Chart Title vertically.
Default: “top”Options | horizontalAlign | verticalAlign |
---|---|---|
1 | “left” | “top” |
2 | “left” | “center” |
3 | “left” | “bottom” |
4 | “center” | “top” |
5 | “center” | “center” |
6 | “center” | “bottom” |
7 | “right” | “top” |
8 | “right” | “center” |
9 | “right” | “bottom” |
var chart = new CanvasJS.Chart("container", { . . title:{ verticalAlign: "center", }, . . }); chart.render();
Also See: