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.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
roberthow
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.
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.