Published
Edited
Jun 22, 2022
3 forks
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = [
[
{ id: 'Wood Log' },
{ id: 'Iron Ore' },
{ id: 'Copper Ore' },
{ id: 'Stone' },
{ id: 'Coal' },
{ id: 'Wolframite' }
],
[
{ id: 'Wood Planks', parents: ['Wood Log'] },
{ id: 'Iron Ingot', parents: ['Iron Ore'] },
{ id: 'Copper Ingot', parents: ['Copper Ore'] },
{ id: 'Sand', parents: ['Stone'] },
{ id: 'Graphite', parents: ['Wood Log', 'Coal'] },
{ id: 'Tungsten Ore', parents: ['Wolframite'] }
],
[
{ id: 'Wood Frame', parents: ['Wood Planks'] },
{ id: 'Iron Plating', parents: ['Iron Ingot'] },
{ id: 'Iron Gear', parents: ['Iron Ingot'] },
{ id: 'Copper Wire', parents: ['Copper Ingot'] },
{ id: 'Heat Sink', parents: ['Copper Ingot'] },
{ id: 'Silicon', parents: ['Sand'] },
{ id: 'Glass', parents: ['Sand'] },
{ id: 'Steel', parents: ['Iron Ore', 'Graphite'] },
{ id: 'Carbon Fiber', parents: ['Graphite'] },
{ id: 'Tungsten Carbide', parents: ['Tungsten Ore', 'Graphite'] }
],
[
{ id: 'Electromagnet', parents: [ 'Iron Ingot', 'Copper Wire'] },
{ id: 'Metal Frame', parents: [ 'Wood Frame', 'Iron Plating'] },
{ id: 'Logic Circuit', parents: [ 'Copper Wire', 'Silicon'] },
{ id: 'Condenser Lens', parents: [ 'Glass' ] },
{ id: 'Steel Rod', parents: [ 'Steel'] },
{ id: 'Nano Wire', parents: [ 'Glass', 'Carbon Fiber'] },
{ id: 'Coupler', parents: [ 'Tungsten Carbide'] }
],
[
{ id: 'Rotor', parents: [ 'Iron Plating', 'Steel Rod'] },
{ id: 'Battery', parents: [ 'Electromagnet', 'Graphite'] },
{ id: 'Computer', parents: [ 'Metal Frame', 'Heat Sink', 'Logic Circuit'] },
{ id: 'Concrete', parents: [ 'Sand', 'Steel Rod'] },
{ id: 'Electron Microscope', parents: ['Electromagnet', 'Nano Wire', 'Condenser Lens', 'Metal Frame' ] },
{ id: 'Turbocharger', parents: [ 'Iron Gear', 'Logic Circuit', 'Coupler', 'Nano Wire'] }
],
[
{ id: 'Electric Motor', parents: [ 'Iron Gear', 'Battery', 'Rotor'] },
{ id: 'Gyroscope', parents: [ 'Copper Wire', 'Rotor'] },
{ id: 'Tank', parents: [ 'Glass', 'Tungsten Carbide', 'Concrete' ] },
{ id: 'Industrial Frame', parents: [ 'Metal Frame', 'Tungsten Carbide', 'Concrete' ] },
{ id: 'Super Computer', parents: [ 'Heat Sink', 'Coupler', 'Computer', 'Turbocharger', ] },
],
[
{ id: 'Energy Cube', parents: [ 'Battery', 'Industrial Frame' ] },
{ id: 'Matter Compressor', parents: [ 'Electric Motor', 'Turbocharger', 'Tank', 'Industrial Frame' ] },
{ id: 'Atomic Locator', parents: [ 'Super Computer', 'Electron Microscope', 'Concrete', 'Copper Wire' ] },
{ id: 'Stabilizer', parents: [ 'Gyroscope', 'Electric Motor', 'Computer' ] },
],
[
{ id: 'Particle Glue', parents: [ 'Matter Compressor' ] },
{ id: 'Magnetic Field Generator', parents: [ 'Nano Wire', 'Electromagnet', 'Industrial Frame', 'Stabilizer' ] }
],
[
{ id: 'Quantum Entangler', parents: [ 'Magnetic Field Generator', 'Stabilizer' ] },
],
[
{ id: 'Matter Duplicator', parents: [ 'Particle Glue', 'Energy Cube', 'Atomic Locator', 'Quantum Entangler'] }
],
[
{ id: 'Earth Token', parents: [ 'Matter Duplicator' ] }
]
]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

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.
Learn more