peterz Posted January 11, 2008 Report Share Posted January 11, 2008 What is the trick to set a series' Y axis to AxisY2 when the series is in a pane other than the first pane? I seem to only be able to set the AxisY2 for series that are on the first pane. Below is my code, results are not what I expected. chart1.Data.Series = 4; chart1.Panes.Add(new Pane()); chart1.Series[0].Pane = chart1.Panes[0]; chart1.Series[1].AxisY = chart1.AxisY2; chart1.Series[1].Pane = chart1.Panes[0]; chart1.Series[2].Pane = chart1.Panes[1]; chart1.Series[3].AxisY = chart1.AxisY2; // this does not seem to work chart1.Series[3].Pane = chart1.Panes[1]; Quote Link to comment Share on other sites More sharing options...
Frank Posted January 11, 2008 Report Share Posted January 11, 2008 chart1.AxisY2 is a shortcut to the seconday Y axis on the main pane. What you want to do is: AxisY axisY2 = new AxisY(); chart1.Panes[1].Add(axisY2); chart1.Series[3].AxisY = axisY2; Quote Link to comment Share on other sites More sharing options...
peterz Posted January 11, 2008 Author Report Share Posted January 11, 2008 Got it, works great, thanks Frank. 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.