VEuPathDB / EdaDataService

Apache License 2.0
2 stars 0 forks source link

Implement `pie` endpoint - initially for use by map visualizations #137

Closed bobular closed 2 years ago

bobular commented 2 years ago

This will be very similar to a barplot endpoint, but when used in the map visualization the variable constraints will need to allow an effectively unlimited number of facets. At the same time, overlay strata should be disallowed.

The constraints on the main variable are an interesting one too... In MapVEu 1.0 we had a limited number of colours (20) and then used varying shades of grey for the remaining pie segments. So there was no constraint on the number of values that categorical values took. This is the one benefit of the pie/donut over bar plots - the "other" categories can be lumped together effectively as one grey pie. The downside to allowing unlimited pie segments is that the legend can become very unwieldy... I would be happy if the back end aggregated all the "others" into one pie slice (as is demoed with static data here). So yeah - we do need a new endpoint for this, @d-callan, as you suggested all along!!

Maybe call it geo-pie or something, in case we want a regular pie endpoint at a later date?

bobular commented 2 years ago

Duplicate of #70