Fixed issue with wrong calculation of areas when a negative color was used on an inverted chart with non-zero threshold. Closes #2011.