// Use d3.nest() to nest each element inside of our nested array. Use a key of "Type 2" Use .map to rename the values to match our data identified above
nested_array
// make a new variable called "formattedData." It should be an Object with two fields: "name" and "children" Assign "name" a value of "Types" For the "children" field assign it our nested data
// use import to import "chart" from '@d3/subburst' and use thw "with" statement to replace the notebook's "data" variable with our "formattedData" varaible
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.