|
Bug with Axis not displaying when data is all 0 |
Posted by Walt on Jul-14-2011 06:30 |
|
Hi all, has anyone experienced a bug where an auto-scaling y-axis will not display when the
dataset is all 0's? To prevent this from happening, I have to manually specify a min/max axis
value. This is less than ideal because I require the autoscaling nature of the axis.
Attached is a screenshot of an example - you can see that the Y Axis completely
disappears. My gut tells me that this is an autoscale bug with a division by 0 exception that
gets caught gracefully. Can anyone speak to this?
|
Re: Bug with Axis not displaying when data is all 0 |
Posted by Peter Kwan on Jul-14-2011 17:54 |
|
Hi Walt,
I have just tried with the Simple Bar Chart sample code by setting all data values to 0. The y-axis is still shown with a scale of 0 - 120.
The only method I can cause the y-axis not to show is not to use any data at all (eg. all data values are Chart.NoValue).
If the above still does not solve the problem, is it possible to provide an example to illustrate the problem (eg. use the Simple Bar Chart or Simple Line Chart sample code, and enter some data values so that the y-axis disappears)?
Regards
Peter Kwan |
Re: Bug with Axis not displaying when data is all 0 |
Posted by Walt on Jul-15-2011 21:53 |
|
Thanks for the followup!
I tracked it down to some of my code - I had some defensive code that was a bit buggy -
substituting Chart.NoValue in for all my points. |
|