Jump to content
Software FX Community

Pane Title


Recommended Posts

I have a Gannt chart with 3 panes. I would like to have a title for each pane to display above the chart but it always goes below the chart.

chart.Panes[1].AxisY.Title.Text =

"Test title";

Is there any setting that would move the title on top ? 


Link to comment
Share on other sites

Ok. I see now.

chart.Panes[1].AxisY.Title.Text = "Test title";

Is setting the title for the Y-Axis of the pane, not the pane itself. The Y-Axis is showing at the bottom of the chart, therefore the title also is.

You have a few options:

1) Use the Chart Titles. For example:

chart.Titles.Add(new Title("TestTitle"));

These titles are not attach to the panes but they can be aligned to the left right or center of the chart.

2) Create a secondary Y-Axis at the top of each of your panes (Axis.Position = AxisPosition.Far), hide the labels and set a title to it. For example:

AxisY axisY = new AxisY();

axisY.Min = 0;

axisY.Max = 1;

axisY.Style |=

axisY.Grids.Major.TickMark =

TickMark.None;axisY.Title.Text = "My Title";




Link to comment
Share on other sites

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.

Reply to this topic...

×   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...