rob_patterson42@hotmail.com Posted March 10, 2009 Report Share Posted March 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
JuanC Posted March 10, 2009 Report Share Posted March 10, 2009 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 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.