i version 5.4 when all the values are same the barchart is not showing anything as it will be same as the x axis as the lowest y axis value is the same as the given value
and this makes it difficult
srikanth
a bug
RE: a bug
The problem occurs becuase the max and min values are the same
and they are both positive. Chart draws nothing for a series of just one
positive value either.
The fix I came up with is this:
for both VerticalNumberAxis and HorizontalNumberAxis modify autoAdjustRange method to include the check below
double upper = vvp.getMaximumVerticalDataValue().doubleValue();
double lower = vvp.getMinimumVerticalDataValue().doubleValue();
/** A. Porebski fixes min=max problem **/
if (upper == lower && lower > 0)
lower = 0.0;
and they are both positive. Chart draws nothing for a series of just one
positive value either.
The fix I came up with is this:
for both VerticalNumberAxis and HorizontalNumberAxis modify autoAdjustRange method to include the check below
double upper = vvp.getMaximumVerticalDataValue().doubleValue();
double lower = vvp.getMinimumVerticalDataValue().doubleValue();
/** A. Porebski fixes min=max problem **/
if (upper == lower && lower > 0)
lower = 0.0;