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


This topic is now archived and is closed to further replies.

  • Create New...