Class CjPieChart

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

public class CjPieChart extends CjChart
Pie chart component for Chart.js.

Pie charts are circular charts divided into slices to illustrate numerical proportion. Each slice represents a category's contribution to the total.

Basic Usage:


 CjPieChart chart = new CjPieChart()
     .setLabels("Red", "Blue", "Yellow")
     .addDataset(new CjDataset("Votes")
         .setData(12, 19, 3)
         .setBackgroundColor("rgb(255, 99, 132)", "rgb(54, 162, 235)", "rgb(255, 205, 86)"))
     .setTitle("Color Preferences");
 
See Also:
  • Constructor Details

    • CjPieChart

      public CjPieChart()
      Creates a new pie chart.