Published
Edited
Apr 5, 2020
Importers
Insert cell
md`# R1CS Circuit Visualiser
Shows the signals in a Circom circuit
as a collapsible tree.

Courtesy of Mike Bostock's [collapsible tree example](https://observablehq.com/@d3/collapsible-tree)`
Insert cell
Insert cell
//pack(parseSignals)
Insert cell
//Object.keys(data.signalName2Idx)[1].match(/(.*)\[(.*)\]/)
Insert cell
Insert cell
Insert cell
Insert cell
color = d3.scaleSequential([9, 0], d3.interpolateMagma)
Insert cell
Insert cell
dx = 10
Insert cell
dy = width / 12
Insert cell
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