Class DoughnutChart

All Implemented Interfaces:
Chart<DoughnutChart,DoughnutOptions,DoughnutData>

public class DoughnutChart extends HomogeneousChart<DoughnutChart,DoughnutOptions,DoughnutData>
  • Constructor Details

  • Method Details

    • data

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

      public static DoughnutOptions options()
      Static factory, constructs an Options implementation appropriate for a DoughnutChart.
      Returns:
      a new DoughnutOptions 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.

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

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