Published
Edited
Feb 3, 2018
1 fork
13 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// maximum error value by which to normalize the color scale
// all error values above this value will be clamped
maxError = 5
Insert cell
// charge strength of particles
// -30 -> the default used in d3-force
strength = -30
Insert cell
// exponent applied to distance in force calculation
// 1.0 -> inverse linear law (as in d3-force)
// 1.5 -> inverse square law (as in physics)
exp = 1
Insert cell
Insert cell
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