dolgorae Posted February 24, 2010 Report Share Posted February 24, 2010 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..! Quote Link to comment Share on other sites More sharing options...
CarlosAC Posted February 25, 2010 Report Share Posted February 25, 2010 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 Quote Link to comment Share on other sites More sharing options...
dolgorae Posted February 25, 2010 Author Report Share Posted February 25, 2010 It helps me a lot..! I really appreciate for your advice. - dolgorae Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.