Swap columns in htmlizeOrganizationInOutChart.
This commit is contained in:
parent
62f1b7b92f
commit
b8433e84eb
1 changed files with 9 additions and 9 deletions
|
@ -913,19 +913,19 @@ public class ChartHtmlizer
|
|||
BarChart chart = new BarChart("Entrées/Sorties");
|
||||
// chart.setStacked(true);
|
||||
|
||||
chart.addDataset("Sorties");
|
||||
PathPropertyList values = federation.getByYearPrefix("metrics.members.out").sortByPath();
|
||||
for (PathProperty property : values)
|
||||
{
|
||||
chart.add(0, Double.parseDouble(property.getValue()), ChartColor.RED);
|
||||
}
|
||||
|
||||
chart.addDataset("Entrées");
|
||||
PathPropertyList values = federation.getByYearPrefix("metrics.members.in").sortByPath();
|
||||
values = federation.getByYearPrefix("metrics.members.in").sortByPath();
|
||||
for (PathProperty property : values)
|
||||
{
|
||||
chart.getLabels().add(property.getLeaf());
|
||||
chart.add(0, Double.parseDouble(property.getValue()), ChartColor.GREEN);
|
||||
}
|
||||
|
||||
chart.addDataset("Sorties");
|
||||
values = federation.getByYearPrefix("metrics.members.out").sortByPath();
|
||||
for (PathProperty property : values)
|
||||
{
|
||||
chart.add(1, Double.parseDouble(property.getValue()), ChartColor.RED);
|
||||
chart.add(1, Double.parseDouble(property.getValue()), ChartColor.GREEN);
|
||||
}
|
||||
|
||||
result = BarChartView.build(chart);
|
||||
|
|
Loading…
Reference in a new issue