Jump to content
Software FX Community

AxisY Autoscale and/or Recalculatescale


Recommended Posts

 I have a chart that is adding series automatically from code.

When the second series that I'm adding has a higher value (y-axis) than the first but starts at a later point in time on the x-axis, the graph (stacked bar) only scales to the first series.  I've tried autoscaling the axisy also tried using the chart.Recalculatescale after the seriesattributes have been added to the chart but still not working.

 Any thoughts?


Mike Henry



Link to comment
Share on other sites

 Actually what might be happening is this.

Series 1: Max value = 250  starts in  Jan, 2008 and data decreases each month after.

Series 2: Max value = 217 starts in Mar, 2008 and data decreases each month after.

 If these two series are stacked it seems to be only scaling to the max value.

So at the Mar time point is reading off the chart as the max value on the chart is only 250.

The reason is that I set the AxisY.Max = 60000;

Later I make a call to chart.RecalculateScale() and it renders the max value back to 250.

Thanks again,


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.

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