inbo / alien-species-portal

Portal for alien and invasive species indicators
MIT License
0 stars 0 forks source link

[BUG] Discrepancy between number of species & native continent graph #90

Open SanderDevisscher opened 3 months ago

SanderDevisscher commented 3 months ago

Location of the bug Global Indicators > Origin > Number of introduced species per year and per native continent

Describe the bug When I select the species with Degree of establishment == "Invasive" I get just 1 species (Cernuella neglecta) but when I look at the graph I get 12 (4 in each region of origin) species in 2014 and 6 (2 in each region) in 1972. This causes me to suspect the species multiple lines with the same data in the dataset & a simple distinct should most likely fix this issue.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'exoten-uat.inbo.be'
  2. Click on 'Global Indicators'
  3. Select 'Degree of establishment == "Invasive"' => this should yield only 1 species
  4. Click on Origin
  5. Click on Number of introduced species per year and per native continent
  6. See error

Expected behavior The graph displays as stacked bar chart with only 1 species per region of origin.

Screenshots newplot (2)

Additional context This is version v.0.0.5

SanderDevisscher commented 2 months ago

Display by default the continent of origin. Also add dropdown to select between Continent (Europe, Africa, ...) & region (Southren Europe, Eastren Europe, ...)