Jump to content
Software FX Community

keep one X Axis for two axis(secondary Y) charts.

Recommended Posts


I have added secondary Y-axis to a chart. How do I set Y=0 ,X axis based line same to the axis Y2.  Simply I want to keep one X Axis for both Y axis.



  • Like 1

Share this post

Link to post
Share on other sites

Hello Ajith,

In order to set a Secondary Y axis, please add the
following code:


SeriesAttributes serie1 = chart1.Series[1];

serie1.AxisY = chart1.AxisY2;


The code above will generate the following output:


Posted Image 


I hope this helps.



Share this post

Link to post
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.

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.


  • Create New...