Class PieChart

All Implemented Interfaces:
Chart<PieChart,PieOptions,PieData>

public class PieChart extends HomogeneousChart<PieChart,PieOptions,PieData>
  • Constructor Details

    • PieChart

      public PieChart()
    • PieChart

      public PieChart(PieData data)
    • PieChart

      public PieChart(PieData data, PieOptions options)
  • Method Details

    • data

      public static PieData data()
      Static factory, constructs an HomogeneousData implementation appropriate for a PieChart.
      Returns:
      a new PieData instance
    • options

      public static PieOptions options()
      Static factory, constructs an Options implementation appropriate for a PieChart.
      Returns:
      a new PieOptions instance
    • getType

      public String getType()
      Returns:
      type of this Chart implementation for proper drawing in JavaScript.
    • isDrawable

      public boolean isDrawable()

      Optional check to determine whether the current state of this Chart implementation instance will generate a drawable JSON string.

      Implementations provide a best-effort evaluation, and can not guarantee that the serialized chart will be rendered correctly.

      PieChart is drawable if at least one dataset has at least one data point.

      Returns:
      true if this Chart is drawable in its current state