NaN values are drawn as black regardless of the chosen "Missing Data" color
Issue #253
closed
No description provided.
Comments (5)
-
repo owner -
repo owner - changed status to resolved
-
- changed status to closed
Checked in version 20151118, issue fixed.
-
- changed component to Color settings
-
- removed milestone
Removing milestone: Color settings (automated comment)
- Log in to comment
In Java doubles can take on certain special values such as "NaN" or "Infinity". Double.parseDouble has set NaN strings as "NaN"-doubles which were never recognized as missing data. The "value" of missing data was previously (TreeView 2) defined in DataModel as NODATA = -100000 (?).
Data with that value was considered "missing" in TreeView. I have now changed this to "NaN" which makes 10000 times more sense and it reduces some complex reliable floating point equality checks to the inbuilt Double.isNan() function. I have done the analog thing for EMPTY values which are now Double.Infinite.