List<Range<Double>> novalueRangeList = null;
if (categories != null) {
for (Category category : categories) {
String catName = category.getName().toString();
if (catName.equalsIgnoreCase("no data")) {
NumberRange range = category.getRange();
double min = range.getMinimum();
double max = category.getRange().getMaximum();
if (!Double.isNaN(min) && !Double.isNaN(max)) {
// we have to filter those out
Range<Double> novalueRange = new Range<Double>(min, true, max, true);
novalueRangeList = new ArrayList<Range<Double>>();