Vertically adjust X

Thread is closed for posting
2 posts, 0 answers
  1. Esperanza Ramos
    Esperanza Ramos avatar
    104 posts
    Member since:
    Jul 2012

    Posted 03 Oct 2008 Link to this post

    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

  2. Esperanza Ramos
    Esperanza Ramos avatar
    104 posts
    Member since:
    Jul 2012

    Posted 03 Oct 2008 Link to this post

    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

Back to Top