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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more