Fix for Max legend value when max value is zero (Issue #460)