Work around a Rhino Java object prototype issue
Fix problem with non-positive chart values