Diagram - habitat breakdown
As an API consumer, I want to be able to visualise habitat classification across section for transect selection in specific period of time. Aggregation of data for the diagram should be done over inner habitat sections.
Jira ticket: https://ufz-jira.scolution.de/browse/MWB-286
AC
-
Diagram type HabitatClassification is implemented: -
Breakdown by habitat classification code over accessible sections. Only the inner habitat class is taken into consideration. Diagram displays average distribution percentage of inner habitat class code for selected sections in the selected time range, according to related transects filter. (pseudo: select habitatClassCode, avg(percentage) from transect, section group by habitatClassCode) -
Category 'unassigned' is 100 - (sum of values in all other categories) -
displayType: "arc" (pie chart) -
title: "Habitat classification" -
xLabel: empty string (there is no x axis in this type of diagram) -
yLabel: empty string (there is no x axis in this type of diagram) -
dataSeries JSON format:
[
{
"code": "B1",
"value": "9.50"
},
{
"code": "B2",
"value": "12.50"
},
{
"code": "unassigned",
"value": 78
}
]
-
Tests
ADDITIONAL REQUIREMENT (FE, came in on 14.10.2021):
-
Change responses in all day-series diagrams (CreatedInspections, VisitedTransects, CountSpecies, CountSpeciesBreakdown, ObservationIndex) to include date range instead of a single day for X axis. Change from
"seriesData": [
{
"Day": "2021-02-01",
"Count": 0
},
{
"Day": "2021-02-02",
"Count": 0
}
]
To:
"seriesData": [
{
"Start": "2021-02-01T00:00:00.000Z",
"End": "2021-02-01T23::59.000Z",
"Count": 0
},
{
"Start": "2021-02-02T00:00:00.000Z",
"End": "2021-02-02T23:59:59.000Z",
"Count": 0
}
]
Review
-
Diagram type HabitatClassification is implemented: -
Breakdown by habitat classification code over accessible sections. Only the inner habitat class is taken into consideration. Diagram displays average distribution percentage of inner habitat class code for selected sections in the selected time range, according to related transects filter. (pseudo: select habitatClassCode, avg(percentage) from transect, section group by habitatClassCode) -
Category 'unassigned' is 100 - (sum of values in all other categories) -
displayType: "arc" (pie chart) -
title: "Habitat classification" -
xLabel: empty string (there is no x axis in this type of diagram) -
yLabel: empty string (there is no x axis in this type of diagram) -
dataSeries JSON format:
[
{
"code": "B1",
"value": "9.50"
},
{
"code": "B2",
"value": "12.50"
},
{
"code": "unassigned",
"value": 78
}
]
-
Tests
ADDITIONAL REQUIREMENT (FE, came in on 14.10.2021):
-
Change responses in all day-series diagrams (CreatedInspections, VisitedTransects, CountSpecies, CountSpeciesBreakdown, ObservationIndex) to include date range instead of a single day for X axis. Change from
Edited by Michael Voigt