public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final DataSeries other = (DataSeries) obj;
   if (variable == null) {
     if (other.variable != null) return false;
   } else if (!variable.equals(other.variable)) return false;
   return true;
 }
 public String formatForDisplay() {
   return variable.getLabel();
 }