My chart has PlotArea, LegendBox, DataGrid from left to right.
I want to set a title to center, so the code like below:
-------------------------my code------------------------
var title = new cfx.TitleDockable();
title.setText("My Title");
title.setPlotAreaOnly(false);
title.setAlignment(cfx.StringAlignment.Center);
chart1.getTitles().add(title);
--------------------------------------------------------------
The code can not meet my requirement and the method setPlotAreaOnly() seems to just include plot area and margins, it exclude the legend box and data grid.
Is there any way to make the title centered, not just in plot area and margins, but the whole chart.