boxwise / boxtribute

The code base for Boxtribute 2.0, a humanitarian aid web application making it easy to source, store and distribute goods to people in need in a fair and dignified way
https://www.boxtribute.org/
Apache License 2.0
31 stars 12 forks source link

[3rd viz] create user story / spec for 3rd viz #903

Open HaGuesto opened 1 year ago

HaGuesto commented 1 year ago

Flowchart Sankey diagram

MaikNeubert commented 1 year ago

example https://github.com/kdivringi/visx-rodeo/blob/main/src/Sankey.tsx

pylipp commented 1 year ago

@aerinsol can you define the user story, or link one from the spreadsheet. IIRC it's about flow of boxes from one location to others, comparable to what was originally written here or in #878 .

aerinsol commented 1 year ago

Currently holding off on creation on Sankey or similar flow-based diagrams as we are awaiting more finalized input from @seinig .

Instead, the feature request will now be to create a pie chart similar to the sample shown here, along with a ranked list.

Backend @pylipp : Top Ranked Products given a Custom Time Frame.

Distribution: Showcase which were the top 5 product distributed (checked out) with 1) ranking and 2) total item numbers in that time frame frame. Inventory - corresponds to user story 3.1: Showcase which were the top 5 products - with both 1) ranking and 2) total item numbers 3) with the option to filter/group by size - moved to DONATED state within that time frame; OR created during that time frame.

Front End @MaikNeubert: Pie Chart and Numbered List

Create a pie chart that groups by product categories all items checked out within a specified time frame AND/OR all all items CREATED within a certain time frame. Simultaneously show next to it a ranked list of top items checkout / created during that time period, including total items numbers that support that ranking.

Additional comment - @pylipp the cube that you created for the 2nd visualization should probably be updated to return ProductName and CategoryName, rather than ProductId and CategoryId - @MaikNeubert please state if you'd like to keep the current ID numbers instead of text strings for your purposes.

pylipp commented 1 year ago

@aerinsol using ProductId and CategoryId is by intention. Using a star-like data format the corresponding names can be looked up in dimension tables as described in #950 .

HaGuesto commented 1 year ago

@aerinsol regarding:

Inventory - corresponds to user story 3.1: Showcase which were the top 5 products - with both 1) ranking and 2) total item numbers 3) with the option to filter/group by size - moved to DONATED state within that time frame; OR created during that time frame.

How does shipment and transfer come into this when it is enabled? The thing is that boxes are never marked as donated if they are shipped.