forked from ProjectDrawdown/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
treemap.json
1 lines (1 loc) · 7.99 KB
/
treemap.json
1
{"$schema": "https://vega.github.io/schema/vega/v4.json", "width": 190, "height": 380, "padding": 2.5, "autosize": "none", "signals": [{"name": "layout", "value": "squarify"}, {"name": "aspectRatio", "value": 1.4}], "data": [{"name": "drawdown", "values": [{"id": 1}, {"id": 2, "parent": 1}, {"id": 3, "parent": 1}, {"id": 4, "parent": 1}, {"id": 5, "name": "Transport", "parent": 2, "color": "Teal"}, {"id": 6, "name": "Oceans", "parent": 2, "color": "Aquamarine"}, {"id": 7, "name": "Materials", "parent": 2, "color": "RebeccaPurple"}, {"id": 8, "name": "Electricity Generation", "parent": 3, "color": "Peru"}, {"id": 9, "name": "Food", "parent": 3, "color": "PeachPuff"}, {"id": 10, "name": "Land Use", "parent": 4, "color": "Green"}, {"id": 11, "name": "Buildings and Cities", "parent": 4, "color": "SteelBlue"}, {"id": 12, "name": "Women and Girls", "parent": 4, "color": "DarkGoldenRod"}, {"id": 13, "name": "Refrigerant Management", "parent": 7, "size": 89.74}, {"id": 14, "name": "Wind Turbines (Onshore)", "parent": 8, "size": 84.6}, {"id": 15, "name": "Reduced Food Waste", "parent": 9, "size": 70.53}, {"id": 16, "name": "Plant-Rich Diet", "parent": 9, "size": 66.11}, {"id": 17, "name": "Tropical Forests", "parent": 10, "size": 61.23}, {"id": 18, "name": "Educating Girls", "parent": 12, "size": 51.48}, {"id": 19, "name": "Family Planning", "parent": 12, "size": 51.48}, {"id": 20, "name": "Solar Farms", "parent": 8, "size": 36.9}, {"id": 21, "name": "Silvopasture", "parent": 9, "size": 31.19}, {"id": 22, "name": "Rooftop Solar", "parent": 8, "size": 24.6}, {"id": 23, "name": "Regenerative Agriculture", "parent": 9, "size": 23.15}, {"id": 24, "name": "Temperate Forests", "parent": 10, "size": 22.61}, {"id": 25, "name": "Peatlands", "parent": 10, "size": 21.57}, {"id": 26, "name": "Tropical Staple Trees", "parent": 9, "size": 20.19}, {"id": 27, "name": "Afforestation", "parent": 10, "size": 18.06}, {"id": 28, "name": "Conservation Agriculture", "parent": 9, "size": 17.35}, {"id": 29, "name": "Tree Intercropping", "parent": 9, "size": 17.2}, {"id": 30, "name": "Geothermal", "parent": 8, "size": 16.6}, {"id": 31, "name": "Managed Grazing", "parent": 9, "size": 16.34}, {"id": 32, "name": "Nuclear", "parent": 8, "size": 16.09}, {"id": 33, "name": "Clean Cookstoves", "parent": 9, "size": 15.81}, {"id": 34, "name": "Wind Turbines (Offshore)", "parent": 8, "size": 14.1}, {"id": 35, "name": "Farmland Restoration", "parent": 9, "size": 14.08}, {"id": 36, "name": "Improved Rice Cultivation", "parent": 9, "size": 11.34}, {"id": 37, "name": "Concentrated Solar", "parent": 8, "size": 10.9}, {"id": 38, "name": "Electric Vehicles", "parent": 5, "size": 10.8}, {"id": 39, "name": "District Heating", "parent": 11, "size": 9.38}, {"id": 40, "name": "Multistrata Agroforestry", "parent": 9, "size": 9.28}, {"id": 41, "name": "Wave and Tidal", "parent": 8, "size": 9.2}, {"id": 42, "name": "Methane Digesters (Large)", "parent": 8, "size": 8.4}, {"id": 43, "name": "Insulation", "parent": 11, "size": 8.27}, {"id": 44, "name": "Ships", "parent": 5, "size": 7.87}, {"id": 45, "name": "LED Lighting (Household)", "parent": 11, "size": 7.81}, {"id": 46, "name": "Biomass", "parent": 8, "size": 7.5}, {"id": 47, "name": "Bamboo", "parent": 10, "size": 7.22}, {"id": 48, "name": "Alternative Cement", "parent": 7, "size": 6.69}, {"id": 49, "name": "Mass Transit", "parent": 5, "size": 6.57}, {"id": 50, "name": "Forest Protection", "parent": 10, "size": 6.2}, {"id": 51, "name": "Indigenous Peoples\u2019 Land Management", "parent": 10, "size": 6.19}, {"id": 52, "name": "Trucks", "parent": 5, "size": 6.18}, {"id": 53, "name": "Solar Water", "parent": 8, "size": 6.08}, {"id": 54, "name": "Heat Pumps", "parent": 11, "size": 5.2}, {"id": 55, "name": "Airplanes", "parent": 5, "size": 5.05}, {"id": 56, "name": "LED Lighting (Commercial)", "parent": 11, "size": 5.04}, {"id": 57, "name": "Building Automation", "parent": 11, "size": 4.62}, {"id": 58, "name": "Water Saving - Home", "parent": 7, "size": 4.61}, {"id": 59, "name": "Bioplastic", "parent": 7, "size": 4.3}, {"id": 60, "name": "In-Stream Hydro", "parent": 8, "size": 4.0}, {"id": 61, "name": "Cars", "parent": 5, "size": 4.0}, {"id": 62, "name": "Cogeneration", "parent": 8, "size": 3.97}, {"id": 63, "name": "Perennial Biomass", "parent": 10, "size": 3.33}, {"id": 64, "name": "Coastal Wetlands", "parent": 10, "size": 3.19}, {"id": 65, "name": "System of Rice Intensification", "parent": 9, "size": 3.13}, {"id": 66, "name": "Walkable Cities", "parent": 11, "size": 2.92}, {"id": 67, "name": "Household Recycling", "parent": 7, "size": 2.77}, {"id": 68, "name": "Industrial Recycling", "parent": 7, "size": 2.77}, {"id": 69, "name": "Smart Thermostats", "parent": 11, "size": 2.62}, {"id": 70, "name": "Landfill Methane", "parent": 11, "size": 2.5}, {"id": 71, "name": "Bike Infrastructure", "parent": 11, "size": 2.31}, {"id": 72, "name": "Composting", "parent": 9, "size": 2.28}, {"id": 73, "name": "Smart Glass", "parent": 11, "size": 2.19}, {"id": 74, "name": "Women Smallholders", "parent": 12, "size": 2.06}, {"id": 75, "name": "Telepresence", "parent": 5, "size": 1.99}, {"id": 76, "name": "Methane Digesters (Small)", "parent": 8, "size": 1.9}, {"id": 77, "name": "Nutrient Management", "parent": 9, "size": 1.81}, {"id": 78, "name": "High-speed Rail", "parent": 5, "size": 1.52}, {"id": 79, "name": "Farmland Irrigation", "parent": 9, "size": 1.33}, {"id": 80, "name": "Waste-to-Energy", "parent": 8, "size": 1.1}, {"id": 81, "name": "Electric Bikes", "parent": 5, "size": 0.96}, {"id": 82, "name": "Recycled Paper", "parent": 7, "size": 0.9}, {"id": 83, "name": "Water Distribution", "parent": 11, "size": 0.87}, {"id": 84, "name": "Biochar", "parent": 9, "size": 0.81}, {"id": 85, "name": "Green Roofs", "parent": 11, "size": 0.77}, {"id": 86, "name": "Trains", "parent": 5, "size": 0.52}, {"id": 87, "name": "Ridesharing", "parent": 5, "size": 0.32}, {"id": 88, "name": "Micro Wind", "parent": 8, "size": 0.2}, {"id": 89, "name": "Carpooling", "parent": 5, "size": 0.16}, {"id": 90, "name": "Cool Roofs", "parent": 11, "size": 0.52}, {"id": 91, "name": "Limiting Bottom Trawling", "parent": 6, "size": 1.5}], "transform": [{"type": "stratify", "key": "id", "parentKey": "parent"}, {"type": "treemap", "field": "size", "round": true, "method": {"signal": "layout"}, "ratio": {"signal": "aspectRatio"}, "size": [{"signal": "width"}, {"signal": "height"}]}]}, {"name": "nodes", "source": "drawdown", "transform": [{"type": "filter", "expr": "datum.children"}]}, {"name": "leaves", "source": "drawdown", "transform": [{"type": "filter", "expr": "!datum.children"}]}], "scales": [{"name": "color", "type": "ordinal", "domain": ["Materials", "Electricity Generation", "Electricity", "Food", "Agriculture", "Land Use", "Land", "Women and Girls", "Population", "Transport", "Transportation", "Buildings and Cities", "Buildings", "Oceans", "Waste"], "range": ["RebeccaPurple", "Peru", "Peru", "PeachPuff", "FireBrick", "Green", "Green", "DarkGoldenRod", "DarkGoldenRod", "Teal", "Teal", "SteelBlue", "SteelBlue", "Aquamarine", "Sienna"]}], "marks": [{"type": "rect", "from": {"data": "nodes"}, "interactive": false, "encode": {"enter": {"fill": {"scale": "color", "field": "name"}}, "update": {"x": {"field": "x0"}, "y": {"field": "y0"}, "x2": {"field": "x1"}, "y2": {"field": "y1"}}}}, {"type": "rect", "from": {"data": "leaves"}, "encode": {"enter": {"stroke": {"value": "#fff"}, "tooltip": {"signal": "{title: datum.name, 'CO2eq': format(datum['size'], '.2f') + ' Gigatons'}"}}, "update": {"x": {"field": "x0"}, "y": {"field": "y0"}, "x2": {"field": "x1"}, "y2": {"field": "y1"}, "fill": {"value": "transparent"}}, "hover": {"fill": {"value": "gray"}}}}, {"type": "text", "from": {"data": "nodes"}, "interactive": false, "encode": {"enter": {"font": {"value": "Helvetica Neue, Arial"}, "align": {"value": "center"}, "baseline": {"value": "middle"}, "fill": {"value": "#fff"}, "text": {"field": "name"}, "fontSize": {"value": 18}, "fillOpacity": {"value": 1.0}, "angle": {"value": -62.0}}, "update": {"x": {"signal": "0.5 * (datum.x0 + datum.x1)"}, "y": {"signal": "0.5 * (datum.y0 + datum.y1)"}}}}]}