MapofLife / datasets

A datasets list and information view for Map of Life
https://mol.org/datasets/
MIT License
1 stars 2 forks source link

Make visualization types configurable. #50

Closed jmalczyk closed 8 years ago

jmalczyk commented 8 years ago

Add an additional field added to the inventory/datasets api that the UI that can allow the UI to determine what map visualizations are available for a given dataset. For example record counts are only appropriate for points.

funkycoda commented 8 years ago

ETA

villanueval commented 8 years ago

Test available in 0.x.

Points have: ["no_species,no_records"]

Other datasets have: ["no_species"]

jmalczyk commented 8 years ago

Sorry to add complexity here but we shouldn't lock ourselves into a single visualization type here. map layers are one, but we might also want to add things like charts (histogram across years or uncertainty for example). This works fine for now, but think about how we would restructure this response to be more flexible, something like:

[
   {"type" : "maps", "options": ["no_species","no_records"]},
   {"type": "histograms", "options": ["years" , "uncertainty"]}
]
funkycoda commented 8 years ago

@jmalczyk, agreed. This could work. Would be good to know what type of viz features we'd like to add.

We could potentially use this format for other parts too (e.g. species, indicators, etc)

jmalczyk commented 8 years ago

Let's call this done for 0.2. Will file another ticket when we want to add other visualization types.