render labels on x2 axis
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
package org.lucares.pdb.plot.api;
|
package org.lucares.pdb.plot.api;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import org.lucares.recommind.logs.AxisSettings;
|
import org.lucares.recommind.logs.AxisSettings;
|
||||||
@@ -41,17 +39,9 @@ public class BarChartHandler extends AggregateHandler {
|
|||||||
result.setLabel("Bar");
|
result.setLabel("Bar");
|
||||||
result.setType(Type.Group);
|
result.setType(Type.Group);
|
||||||
result.setAxis(getxAxis());
|
result.setAxis(getxAxis());
|
||||||
result.setTicsEnabled(false);
|
result.setTicsEnabled(true);
|
||||||
result.setFrom("0");
|
result.setFrom("0");
|
||||||
// result.setTo(String.valueOf(dataSeries.size()));
|
|
||||||
|
|
||||||
final List<String> ticsLabels = new ArrayList<>();
|
|
||||||
int index = 1;
|
|
||||||
for (final DataSeries series : dataSeries) {
|
|
||||||
ticsLabels.add("\"" + series.getTitle() + "\" " + index);
|
|
||||||
index++;
|
|
||||||
}
|
|
||||||
// result.setTics(ticsLabels);
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user