Bubble charts in JavaScript - Plotly Bubble Size Scaling on Charts // To scale the bubble size, use the attribute sizeref. We recommend using the following formula to calculate a sizeref value: // sizeref = 2.0 * Math.max(...size) / (desired_maximum_marker_size**2) // Note that setting 'sizeref' to a value greater than 1, decreases the rendered marker sizes, while setting 'sizeref' to less than 1, increases the rendered marker sizes.