mr.mghenry Posted February 10, 2009 Report Share Posted February 10, 2009 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 Quote Link to comment Share on other sites More sharing options...
mr.mghenry Posted February 10, 2009 Author Report Share Posted February 10, 2009 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, Mike Quote Link to comment Share on other sites More sharing options...
JuanC Posted February 11, 2009 Report Share Posted February 11, 2009 Can you please post a sample XAML/CS that exhibits this issue? 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.