use of org.talend.dataprofiler.core.ui.editor.preview.model.dataset.CustomerXYSeriesCollection in project tdq-studio-se by Talend.
the class WhereRuleStatisticsStateTable method getCustomerXYDataset.
@Override
public ICustomerDataset getCustomerXYDataset() {
Map<Integer, Double> valueMap = new HashMap<Integer, Double>();
int x = 0;
for (TableIndicatorUnit unit : units) {
x++;
double y = 100 * (1 - (Double.parseDouble(unit.getValue().toString()) / getRowCount()));
valueMap.put(x, y);
}
final CustomerXYSeriesCollection dataset = new CustomerXYSeriesCollection(valueMap);
return dataset;
}
Aggregations