enableLogScale fails on empty series
Status: Beta
Brought to you by:
yoshitaka
Series#setXSeries and setYSeries don't update their range bounds when passed an empty double[]. This causes a failure in the following scenario:
enableLogScale;On a side note, the exception message says
Series contain negative value.
which is misleading: my data is supposed to never contain negative values, so I thought I had a bug in my data-generating code, only to find out that the true meaning of the message is
Series contain non-positive value.
The implementation of IAxis.enableLogScale(boolean) has been changed to correctly check the content of series.