IntroModel defines this data structure that describes the bins (cylinders):
this.cylinderInfo = { // @public (read-only)
height: bounds.height * 0.87, // we want the cylinders to be shorter than the histogram
cylinderWidth: cylinderWidth,
ellipseHeight: ellipseHeight, // the height of the ellipse
verticalOffset: 0.035, // gap between pegboard and cylinders
top: bounds.maxY // the top of the cylinders
};
Very inconsistent to have cylinderWidth and height. Recommended to rename height to cylinderHeight.
IntroModel defines this data structure that describes the bins (cylinders):
Very inconsistent to have
cylinderWidth
andheight
. Recommended to renameheight
tocylinderHeight
.