Jump to content
Software FX Community

how to plot a series on secondary axis(i.e. ploting a series on Y2)?


divyesh29
 Share

Recommended Posts

This should give you an idea of how to go about doing it. :-D

AxisY tempAxis = new AxisY();

tempAxis.Min = 0;

//highestValue is my array of the highestValues recorded on the series

tempAxis.Max = Math.Round(highestValues[series.Text]);

tempAxis.TextColor = series.Color;

tempAxis.Position = AxisPosition.Near;

tempAxis.Title.Text = config.OwnAxisTitle;

tempAxis.Max = tempAxis.Max + tempAxis.Step;

series.AxisY = tempAxis;

chartToConfigure.AxesY.Add(tempAxis);

Fast enough? :P I hope this helps you out.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...