Jump to content
Software FX Community

Plot Area Margins


Recommended Posts

We are running into troubles with a secondary vertical "Y" axis on the far right side of a line graph that has 2 series of data. 

There is data dynamically being added to the chart every 5 seconds, giving the perception of a "real time" trend, and as the data values grow the y-axis also changes its values.  However, initial y-axis values appear to be "cut off" on the right hand side, and not have enough room to be drawn properly. Eventually, as the values get large enough, the plot area is dynamically resized to allow larger values for the y-axis.

Is there a way to set the plot area margins programmatically?

Kind regards,

Rob

Link to comment
Share on other sites

You can try setting the chart1.PlotArea.Margins property manually. If you also know in advance the range of your primary and secondary Y axes you can set their Min and Max properties.

Can you post a screenshot or even better some sample code that shows the "initial Y-axis values being cut off on the right hand side"?

Regards,

JuanC

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...