Bubble Balls Demos
Default with custom balls styles
JS Code
const defaultApp = new Balls(relativeUnit, data2)
Dummy Data
Relative Units + Hover + dimension.cols + groupStyles + groupPram + radiusPram + forces.collisionMultiplier
JS Code
const relativeApp = new Balls(relativeUnit, data2, { measurementUnit: { name: "rem" }, dimensions: { cols: 2, }, groupsStyles: [ { color: "royalblue", background: "white", borderColor: "royalblue", }, { color: "white", background: "royalblue", borderColor: "darkblue", }, { color: "#bada55", background: "indigo", borderColor: "indigo", }, { color: "#bada55", background: "indigo", borderColor: "#bada55", }, ], groupParam: { name: "region", }, titlePropertyName: "region", radiusParam: { name: "people", }, forces: { collisionMultiplier: 2.5 //space between }, on: { mouseover() { // do something on mouseover... "this" represent hovered el this.attr("opacity", "0.3") }, mouseout() { // do something on mouseout... "this" represent hovered el // usually it is needed to reverse the effect of "mouseover" this.attr("opacity", "1") }, }, });