Interface Chart<SELF,O extends Options<?,?>,D extends AbstractData<?,?>>

All Known Implementing Classes:
AbstractChart, BarChart, BubbleChart, DoughnutChart, HomogeneousChart, LineChart, MixedChart, PieChart, PolarChart, RadarChart, ScatterChart

public interface Chart<SELF,O extends Options<?,?>,D extends AbstractData<?,?>>
  • Method Summary

    Modifier and Type
    Method
    Description
     
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    No functionality implemented as of 2.1.0
    setData(D data)
     
    setOptions(O options)
     
    Convert this instance to Json for use with Chart.js library.
    default String
    Deprecated, for removal: This API element is subject to removal in a future version.
    As of 2.1.0 toJson() has the same functionality and should be used instead
  • Method Details

    • getType

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

      @Deprecated(since="2.1.0", forRemoval=true) default String toJsonNative()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 2.1.0 toJson() has the same functionality and should be used instead
    • toJson

      String toJson()

      Convert this instance to Json for use with Chart.js library.

      Returns:
      json representation of this Chart
    • isDrawable

      @Deprecated(since="2.1.0", forRemoval=true) default boolean isDrawable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      No functionality implemented as of 2.1.0
    • setOptions

      SELF setOptions(O options)
    • setData

      SELF setData(D data)