interactive voronoi treemap
play

Interactive Voronoi Treemap Final Presentation Group 2 - Chris, - PowerPoint PPT Presentation

Interactive Voronoi Treemap Final Presentation Group 2 - Chris, Lisa, Markus, Romy 1 / 15 Voronoi Diagram Partition of a plane into voronoi cells Voronoi cells are defined by one central node Each cell is closer to its center than


  1. Interactive Voronoi Treemap Final Presentation Group 2 - Chris, Lisa, Markus, Romy 1 / 15

  2. Voronoi Diagram Partition of a plane into voronoi ● cells Voronoi cells are defined by one ● central node Each cell is closer to its center than ● to any other node Figure 1: Voronoi Diagram [Image from https://upload.wikimedia.org/wikipedia/commons/8/8 2 / 15 0/Euclidean_Voronoi_Diagram.png]

  3. Voronoi Treemap Represent hierarchies as nested voronoi cells ● Recursive subdivision of a region into the cells of a centroidal Voronoi ● diagram Weighted Voronoi Treemap ● Size of Voronoi cells depends on weights ○ Distance function ○ 3 / 15

  4. Working Example: FoamTree Visualizes highly customizable ● interactive voronoi treemaps Not open source ● Not Free ● Figure 2: Foamtree Example [Image from researchgate.net] 4 / 15

  5. FoamTree Demo 5 / 15

  6. Our Interactive Voronoi Tree: IVT 6 / 15

  7. Technologies Node js packet manager Riot.js ● ● Webpack ● Electron ● PixiJS ● D3: ● D3-dsv ○ Pixi-Viewport ● D3-hierarchy ○ D3-voronoi-treemap ○ 7 / 15

  8. Pixi.js Used to visualize the treemap ● Offers simple drawing capabilities ● Uses WebGL or Canvas ● depending on the browser Figure 3: Pixi Example Code [Screenshot from github] 8 / 15

  9. Pixi-Viewport Offers intuitive 2D-Camera capabilities for Pixi.js applications ● Options include ● Zooming ○ Clicking ○ Dragging ○ Pinching ○ 9 / 15

  10. D3-Voronoi-Treemap Offers weighted calculation of entire voronoi treemap ● Uses d3-hierarchy as input and output ● 10 / 15

  11. Supported File Formats JSON ● CSV ● 11 / 15

  12. { "name": "America", Sample JSON File "children": [ { "name": "North America", "children": [ {"name": "United States", "weight": 24.32}, {"name": "Canada", "weight": 2.09}, {"name": "Mexico", "weight": 1.54} ] }, { "name": "South America", "children": [ {"name": "Brazil", "weight": 2.39}, {"name": "Argentina", "weight": 0.79}, {"name": "Venezuela", "weight": 0.5}, {"name": "Colombia", "weight": 0.39} ] [Dataset inspired by } https://github.com/WYanChao/Orthogonal-Vorono ] i-Treemap/blob/master/data/globalEconomyByGD } P.json ] 12 / 15

  13. Sample CSV Files Unique Parents Non-Unique Parents name,parent,weight id,name,parentId,weight cars,, 1,Father,, owned,cars, 2,Alice,1, traded,cars, 3,Alice,1, learned,cars, 4,Bob,2,10 pilot,owned,40 5,Doris,3,20 325ci,owned,40 [Unique Parents Dataset from accord,owned,20 https://github.com/d3/d3-hierarchy#stratify ] chevette,traded,10 odyssey,learned,20 [Non-Unique Parents Dataset created by Lisa Weißl] maxima,learned,10 13 / 15

  14. Sample CSV Files Unique Parents Non-Unique Parents name,parent,weight id,name,parentId,weight cars,, 1,Father,, owned,cars, 2,Alice,1, traded,cars, 3,Alice,1, learned,cars, 4,Bob,2,10 pilot,owned,40 5,Doris,3,20 325ci,owned,40 [Unique Parents Dataset from accord,owned,20 https://github.com/d3/d3-hierarchy#stratify ] chevette,traded,10 odyssey,learned,20 [Non-Unique Parents Dataset created by Lisa Weißl] maxima,learned,10 14 / 15

  15. IVT DEMO Youtube Showcase Video 15 / 15

Recommend


More recommend