-
Notifications
You must be signed in to change notification settings - Fork 4
/
donut.json
1 lines (1 loc) · 8.89 KB
/
donut.json
1
{"$schema": "https://vega.github.io/schema/vega/v4.json", "width": 400, "height": 400, "autosize": "none", "signals": [{"name": "startAngle", "value": 0}, {"name": "endAngle", "value": 6.29}, {"name": "padAngle", "value": 0}, {"name": "sort", "value": false}], "data": [{"name": "solutions", "values": [{"id": 1, "name": "Refrigerant Management", "sector": "Materials", "size": 89.74}, {"id": 2, "name": "Wind Turbines (Onshore)", "sector": "Electricity Generation", "size": 84.6}, {"id": 3, "name": "Reduced Food Waste", "sector": "Food", "size": 70.53}, {"id": 4, "name": "Plant-Rich Diet", "sector": "Food", "size": 66.11}, {"id": 5, "name": "Tropical Forests", "sector": "Land Use", "size": 61.23}, {"id": 6, "name": "Educating Girls", "sector": "Women and Girls", "size": 51.48}, {"id": 7, "name": "Family Planning", "sector": "Women and Girls", "size": 51.48}, {"id": 8, "name": "Solar Farms", "sector": "Electricity Generation", "size": 36.9}, {"id": 9, "name": "Silvopasture", "sector": "Food", "size": 31.19}, {"id": 10, "name": "Rooftop Solar", "sector": "Electricity Generation", "size": 24.6}, {"id": 11, "name": "Regenerative Agriculture", "sector": "Food", "size": 23.15}, {"id": 12, "name": "Temperate Forests", "sector": "Land Use", "size": 22.61}, {"id": 13, "name": "Peatlands", "sector": "Land Use", "size": 21.57}, {"id": 14, "name": "Tropical Staple Trees", "sector": "Food", "size": 20.19}, {"id": 15, "name": "Afforestation", "sector": "Land Use", "size": 18.06}, {"id": 16, "name": "Conservation Agriculture", "sector": "Food", "size": 17.35}, {"id": 17, "name": "Tree Intercropping", "sector": "Food", "size": 17.2}, {"id": 18, "name": "Geothermal", "sector": "Electricity Generation", "size": 16.6}, {"id": 19, "name": "Managed Grazing", "sector": "Food", "size": 16.34}, {"id": 20, "name": "Nuclear", "sector": "Electricity Generation", "size": 16.09}, {"id": 21, "name": "Clean Cookstoves", "sector": "Food", "size": 15.81}, {"id": 22, "name": "Wind Turbines (Offshore)", "sector": "Electricity Generation", "size": 14.1}, {"id": 23, "name": "Farmland Restoration", "sector": "Food", "size": 14.08}, {"id": 24, "name": "Improved Rice Cultivation", "sector": "Food", "size": 11.34}, {"id": 25, "name": "Concentrated Solar", "sector": "Electricity Generation", "size": 10.9}, {"id": 26, "name": "Electric Vehicles", "sector": "Transport", "size": 10.8}, {"id": 27, "name": "District Heating", "sector": "Buildings and Cities", "size": 9.38}, {"id": 28, "name": "Multistrata Agroforestry", "sector": "Food", "size": 9.28}, {"id": 29, "name": "Wave and Tidal", "sector": "Electricity Generation", "size": 9.2}, {"id": 30, "name": "Methane Digesters (Large)", "sector": "Electricity Generation", "size": 8.4}, {"id": 31, "name": "Insulation", "sector": "Buildings and Cities", "size": 8.27}, {"id": 32, "name": "Ships", "sector": "Transport", "size": 7.87}, {"id": 33, "name": "LED Lighting (Household)", "sector": "Buildings and Cities", "size": 7.81}, {"id": 34, "name": "Biomass", "sector": "Electricity Generation", "size": 7.5}, {"id": 35, "name": "Bamboo", "sector": "Land Use", "size": 7.22}, {"id": 36, "name": "Alternative Cement", "sector": "Materials", "size": 6.69}, {"id": 37, "name": "Mass Transit", "sector": "Transport", "size": 6.57}, {"id": 38, "name": "Forest Protection", "sector": "Land Use", "size": 6.2}, {"id": 39, "name": "Indigenous Peoples\u2019 Land Management", "sector": "Land Use", "size": 6.19}, {"id": 40, "name": "Trucks", "sector": "Transport", "size": 6.18}, {"id": 41, "name": "Solar Water", "sector": "Electricity Generation", "size": 6.08}, {"id": 42, "name": "Heat Pumps", "sector": "Buildings and Cities", "size": 5.2}, {"id": 43, "name": "Airplanes", "sector": "Transport", "size": 5.05}, {"id": 44, "name": "LED Lighting (Commercial)", "sector": "Buildings and Cities", "size": 5.04}, {"id": 45, "name": "Building Automation", "sector": "Buildings and Cities", "size": 4.62}, {"id": 46, "name": "Water Saving - Home", "sector": "Materials", "size": 4.61}, {"id": 47, "name": "Bioplastic", "sector": "Materials", "size": 4.3}, {"id": 48, "name": "In-Stream Hydro", "sector": "Electricity Generation", "size": 4.0}, {"id": 49, "name": "Cars", "sector": "Transport", "size": 4.0}, {"id": 50, "name": "Cogeneration", "sector": "Electricity Generation", "size": 3.97}, {"id": 51, "name": "Perennial Biomass", "sector": "Land Use", "size": 3.33}, {"id": 52, "name": "Coastal Wetlands", "sector": "Land Use", "size": 3.19}, {"id": 53, "name": "System of Rice Intensification", "sector": "Food", "size": 3.13}, {"id": 54, "name": "Walkable Cities", "sector": "Buildings and Cities", "size": 2.92}, {"id": 55, "name": "Household Recycling", "sector": "Materials", "size": 2.77}, {"id": 56, "name": "Industrial Recycling", "sector": "Materials", "size": 2.77}, {"id": 57, "name": "Smart Thermostats", "sector": "Buildings and Cities", "size": 2.62}, {"id": 58, "name": "Landfill Methane", "sector": "Buildings and Cities", "size": 2.5}, {"id": 59, "name": "Bike Infrastructure", "sector": "Buildings and Cities", "size": 2.31}, {"id": 60, "name": "Composting", "sector": "Food", "size": 2.28}, {"id": 61, "name": "Smart Glass", "sector": "Buildings and Cities", "size": 2.19}, {"id": 62, "name": "Women Smallholders", "sector": "Women and Girls", "size": 2.06}, {"id": 63, "name": "Telepresence", "sector": "Transport", "size": 1.99}, {"id": 64, "name": "Methane Digesters (Small)", "sector": "Electricity Generation", "size": 1.9}, {"id": 65, "name": "Nutrient Management", "sector": "Food", "size": 1.81}, {"id": 66, "name": "High-speed Rail", "sector": "Transport", "size": 1.52}, {"id": 67, "name": "Farmland Irrigation", "sector": "Food", "size": 1.33}, {"id": 68, "name": "Waste-to-Energy", "sector": "Electricity Generation", "size": 1.1}, {"id": 69, "name": "Electric Bikes", "sector": "Transport", "size": 0.96}, {"id": 70, "name": "Recycled Paper", "sector": "Materials", "size": 0.9}, {"id": 71, "name": "Water Distribution", "sector": "Buildings and Cities", "size": 0.87}, {"id": 72, "name": "Biochar", "sector": "Food", "size": 0.81}, {"id": 73, "name": "Green Roofs", "sector": "Buildings and Cities", "size": 0.77}, {"id": 74, "name": "Trains", "sector": "Transport", "size": 0.52}, {"id": 75, "name": "Ridesharing", "sector": "Transport", "size": 0.32}, {"id": 76, "name": "Micro Wind", "sector": "Electricity Generation", "size": 0.2}, {"id": 77, "name": "Carpooling", "sector": "Transport", "size": 0.16}, {"id": 78, "name": "Cool Roofs", "sector": "Buildings and Cities", "size": 0.52}, {"id": 79, "name": "Limiting Bottom Trawling", "sector": "Oceans", "size": 1.5}], "transform": [{"type": "pie", "field": "size", "startAngle": {"signal": "startAngle"}, "endAngle": {"signal": "endAngle"}, "sort": {"signal": "sort"}}]}, {"name": "sectors", "values": [{"id": 80, "name": "Food", "sector": "Food", "size": 321.92999999999984}, {"id": 81, "name": "Electricity Generation", "sector": "Electricity Generation", "size": 246.14}, {"id": 82, "name": "Land Use", "sector": "Land Use", "size": 149.6}, {"id": 83, "name": "Materials", "sector": "Materials", "size": 111.77999999999999}, {"id": 84, "name": "Women and Girls", "sector": "Women and Girls", "size": 105.02}, {"id": 85, "name": "Buildings and Cities", "sector": "Buildings and Cities", "size": 55.019999999999996}, {"id": 86, "name": "Transport", "sector": "Transport", "size": 45.940000000000005}, {"id": 87, "name": "Oceans", "sector": "Oceans", "size": 1.5}], "transform": [{"type": "pie", "field": "size", "startAngle": {"signal": "startAngle"}, "endAngle": {"signal": "endAngle"}, "sort": {"signal": "sort"}}]}], "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": "arc", "from": {"data": "solutions"}, "encode": {"enter": {"fill": {"scale": "color", "field": "sector"}, "x": {"signal": "width / 2"}, "y": {"signal": "height / 2"}, "tooltip": {"signal": "{title: datum.name, 'CO2eq': format(datum['size'], '.2f') + ' Gigatons'}"}}, "update": {"startAngle": {"field": "startAngle"}, "endAngle": {"field": "endAngle"}, "padAngle": {"signal": "padAngle"}, "innerRadius": {"value": 130}, "outerRadius": {"value": 150}, "cornerRadius": {"value": 0}}}}, {"type": "arc", "from": {"data": "sectors"}, "encode": {"enter": {"fill": {"scale": "color", "field": "sector"}, "x": {"signal": "width / 2"}, "y": {"signal": "height / 2"}, "tooltip": {"signal": "{title: datum.name, 'CO2eq': format(datum['size'], '.2f') + ' Gigatons'}"}}, "update": {"startAngle": {"field": "startAngle"}, "endAngle": {"field": "endAngle"}, "padAngle": {"signal": "padAngle"}, "innerRadius": {"value": 98}, "outerRadius": {"value": 118}, "cornerRadius": {"value": 0}}}}]}