Jump to content
JChartFX Community
  • 0

How can I let the title in the horizontal center of whole chart?



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");





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

There have been no answers to this question yet

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.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...