code: public void addAll(Iterator<? extends Number> values) {
      while (values.hasNext()) {
        add(values.next().doubleValue());
      }
    }
docs: Adds the given values to the dataset.
  
  @param values a series of values, which will be converted to {@code double} values (this may
  cause loss of precision)