Class CjBubbleChart

java.lang.Object
com.oorian.html.Element<CjChart>

public class CjBubbleChart extends CjChart
Bubble chart component for Chart.js.

Bubble charts are an extension of scatter charts where each data point has a third dimension represented by the size (radius) of the bubble. They are useful for displaying three dimensions of data in a 2D space.

Basic Usage:


 CjBubbleChart chart = new CjBubbleChart()
     .addDataset(new CjDataset("Dataset")
         .addBubble(20, 30, 15)  // x, y, radius
         .addBubble(40, 10, 10)
         .addBubble(10, 45, 25)
         .setBackgroundColor("rgba(255, 99, 132, 0.5)"))
     .setTitle("Bubble Chart")
     .setXAxisTitle("X Values")
     .setYAxisTitle("Y Values");
 
See Also:
  • Constructor Details

    • CjBubbleChart

      public CjBubbleChart()
      Creates a new bubble chart.