This is a migrated thread and some comments may be shown as answers.

Vertically adjust X

1 Answer 21 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Esperanza Ramos
Top achievements
Rank 1
Esperanza Ramos asked on 03 Oct 2008, 03:18 PM
Hi, All:

My XAxis label is too far from my X-Axis.  Could you help how to lift it up
a little bit?

rcChart.PlotArea.XAxis.AxisLabel.TextBlock.Text =

string.Format("Total Jobs: {0}", iTotalJobs);
rcChart.PlotArea.XAxis.AxisLabel.TextBlock.Appearance.TextProperties.Color =
Color.Black;
rcChart.PlotArea.XAxis.AxisLabel.Visible =
true;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.
AlignedPositions.None;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.X = 600;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.Y = 400;

Here is my code.  I try it, but not as expected.  My XAxis label "Total Jobs"
is sinking too far.

please help.

thanks.
Stanley

1 Answer, 1 is accepted

Sort by
0
Esperanza Ramos
Top achievements
Rank 1
answered on 03 Oct 2008, 03:51 PM
Hi, All:

I think I got the answer, by setting Y = -50:

rcChart.PlotArea.XAxis.AxisLabel.TextBlock.Text =

string.Format("Total Jobs: {0}", iTotalJobs);
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.None;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.Auto =
false;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.X = 400;
rcChart.PlotArea.XAxis.AxisLabel.Appearance.Position.Y = -50;

sorry for posting the first one.

Hope this may help the next programmer.

Stanley

Tags
Chart (Obsolete)
Asked by
Esperanza Ramos
Top achievements
Rank 1
Answers by
Esperanza Ramos
Top achievements
Rank 1
Share this question
or