code: private QueryFieldDataStatistics createStatistics(List<Double> data, double min, double max, double step) {
      Map<Double, String> dataNames = new HashMap<>();
      
      for (double d = min; d <= max; d += step) {
        String caption = step % 1 == 0 ? Long.toString(Math.round(d)) : Double.toString(d);
        dataNames.put(d, caption);
      }
      
      return ReportUtils.getStatistics(data, dataNames);
    }
docs: Creates statistics object
  
  @param data data
  @param min min
  @param max max
  @param step step
  @return statistics object