Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 85816ce

Browse files
Merge pull request SORMAS-Foundation#4233 from hzi-braunschweig/3349-switch_from_column_to_bar_chart
SORMAS-Foundation#3349: read value of the "diagramType" column in the database
2 parents c1ee991 + 3e72305 commit 85816ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/dashboard/campaigns/CampaignDashboardDiagramComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public CampaignDashboardDiagramComponent(
6565
totalValuesWithoutStacks = true;
6666
}
6767

68-
showAsColumnChart = DiagramType.values().length > 0 && DiagramType.COLUMN == DiagramType.values()[0];
68+
showAsColumnChart = DiagramType.COLUMN == diagramDefinition.getDiagramType();
6969
campaignColumnChart = new HighChart();
7070

7171
setSizeFull();

0 commit comments

Comments
 (0)