String month=columnKey.substring(0,separator);
String year=columnKey.substring(separator+1);
Number value=dataset.getValue(row, column); // value put in dataset (- 0.5 or 0.5)
Month currentMonth=new Month(Integer.valueOf(month),Integer.valueOf(year)); // value for that month
TimeSeriesDataItem item = timeSeries.getDataItem(currentMonth);
if(nullValues.contains(columnKey)){
return background;
}
// If no item is retrieved means that no value was specified for that month in that year
if(item==null || item.getValue()==null){
return background;
}
Double currentValue=(Double)item.getValue();
TreeSet<Double> orderedThresholds=new TreeSet<Double>(thresholds.keySet());
Double thresholdGiveColor=null;
// if dealing with targets, begin from first target and go to on till the current value is major