GSoC: Treemaps in Grapher #1287
Replies: 8 comments 5 replies
-
Hello , Your new Contributor, |
Beta Was this translation helpful? Give feedback.
-
Hi Mithun Balram here, I am a final year undergrad at IIT Bombay. I went through the task description & understood the recursive procedure of constructing a treemap from hierarchical data. I also explored a few tiling algorithms based on different heuristics & I am implementing a few of them like slice & dice, squarify & a randomized algorithm . I will complete the implementation in a couple of days. It would be great if u can suggest which tiling algorithm would work better for the kind of data OWID deals with & some benchmark datasets for which I can share the generated treemaps using my code. An Avid OWID reader, |
Beta Was this translation helpful? Give feedback.
-
Hello! I have already contacted the team via email, but I would like to ask a quick question.
|
Beta Was this translation helpful? Give feedback.
-
Hey @larsyencken is this available to work on now? Not as a part of GSoC but as an open project without any fixed timeline 😀 |
Beta Was this translation helpful? Give feedback.
-
Read next comment
Did these get done?
I have nothing but boxes that add up to 100%. I didn't realise the tree structure was maintained. |
Beta Was this translation helpful? Give feedback.
-
Not urgent Yes, if you took the map; via cartogramm style, for population density/projection issues; you could fold it up like Pangaea. Continents, countries, states, regions, jurisdictions ... ... down to the hectare. That's a tree-map now I actually know what one is. Except I'd consider it as a/the primary source of global choropleth data. Just the continents until the user chooses. All built in HTML and CSS, no SVG: faster, more accessible, better data presentation (no sea, though that folds up too I think). All boxes? No weird distorted countries needing heavy calculation? Maps waste how much space with stretched projections and sea? |
Beta Was this translation helpful? Give feedback.
-
I would like to have a go at taking some real, existing data, and making a box shaped tree graph which would act as a choropleth map, but an abstraction to the tree-graph model (as described by @larsyencken). With some team defined constraints designed to make it useful, not just an addition to my site. Something you can use, hopefully, so I could also dig into how data becomes visual in OWID. It would be a big task for me, with other things going on in my life it might take a while, but I'd enjoy it and it would keep me in touch with everything too. It would be better but not essential to point me at stable data sources. I don't expect mentor-ship, I might ask questions, but infrequently out of respect for a small, busy team. I did also flag another task I thought I was well placed to do (Dany got that one) so I'll let you decide, there's no rush at all. Though this task I'm likely to do anyway, just in my own context if it's of no interest to OWID. |
Beta Was this translation helpful? Give feedback.
-
Separately I dropped this question into UX Stack Exchange (UXSE) a few days ago Not sure UXSE is what it used to be, but there might be some useful answers on that given time. |
Beta Was this translation helpful? Give feedback.
-
DIFFICULTY: MEDIUM, SIZE: 350 HOURS
Overview
Treemaps are a hierarchical way of visually showing magnitude as area. We believe that they could be useful for a range of topics, from CO2 emissions, population, and a wide variety of other measures. This project would be to add support for Treemaps to grapher, the open source visualisation tool used by Our World in Data.
Grapher currently has limited support for hierarchical data. A possible sequence would be to try to build treemaps for single metrics; then to add nesting by continent or country grouping; then to investigate support for other types of hierarchy in grapher’s data model.
https://datavizproject.com/data-type/treemap/
Required skills
Javascript, React (optional), Typescript (optional), d3 (optional)
Expected outcomes
Possible mentors:
Feel free to ask any questions you like below!
Beta Was this translation helpful? Give feedback.
All reactions