in

Software FX Community

Discuss and find help for all Software FX products.

How can I change the Z-index of AxisSection of X and Y?

Last post 02-25-2010 6:51 PM by dolgorae. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-24-2010 8:19 PM

    How can I change the Z-index of AxisSection of X and Y?

    Hello.

    There is an AxisSection on each X and Y axis.

    The code is,

                // Axis X : 8~10 Area
                ChartFX.WinForms.AxisSection XSection = new ChartFX.WinForms.AxisSection(8, 10, Color.LightBlue);
                chart1.AxisX.Sections.Add(XSection);

                // Axis Y : 50+-1 Red Line
                ChartFX.WinForms.AxisSection YSection = new ChartFX.WinForms.AxisSection(50+1, 50-1, Color.Red);
                chart1.AxisY.Sections.Add(YSection);
                 

    I expected that the red line would be shown over the the lightblue area.

    However, the red line from 8~10 area is always behind of the lightblue area.

    What I was wondering is, how can I change the Z index priority of the AxisSections of X and Y axis?

     

    I want to show the Y-AxisSection over the X-AxisSection.

    I need help.

    Thank you..!

  • 02-25-2010 11:53 AM In reply to

    • CarlosAC
    • Top 10 Contributor
    • Joined on 02-04-2009
    • Costa Rica

    Re: How can I change the Z-index of AxisSection of X and Y?

    Answer

    Hi dolgorae

    Unfortunately, you cannot change the Axis Z-Index, this is a restriction by default.  I found a workaround for this issue, please check the following code:

    ChartFX.WinForms.AxisSection YSection = new ChartFX.WinForms.AxisSection(50 + 1, 50 - 10, Color.FromArgb(128, Color.Red));
    ChartFX.WinForms.AxisSection XSection = new ChartFX.WinForms.AxisSection(8, 10, Color.FromArgb(70, Color.Blue));

    I hope it helps.

    --Pipon

     

  • 02-25-2010 6:51 PM In reply to

    Re: How can I change the Z-index of AxisSection of X and Y?

    It helps me a lot..!

    I really appreciate for your advice.

     

    - dolgorae

Page 1 of 1 (3 items)
Copyright 2008 Software FX, Inc.