Class ChartData

java.lang.Object
org.primefaces.model.charts.ChartData
All Implemented Interfaces:
Serializable

@Deprecated(since="14.0.0", forRemoval=true) public class ChartData extends Object implements Serializable
Deprecated, for removal: This API element is subject to removal in a future version.
please use new p:chart component
The data configuration for Charts
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    ChartData(List<ChartDataSet> dataSet, Object labels)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a new dataSet as ChartDataSet data to dataSet option
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the dataSet
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets the labels
    void
    setLabels(Object labels)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the labels

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChartData

      public ChartData()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ChartData

      public ChartData(List<ChartDataSet> dataSet, Object labels)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getDataSet

      public List<ChartDataSet> getDataSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the dataSet
      Returns:
      dataSet
    • getLabels

      public Object getLabels()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the labels
      Returns:
      labels
    • setLabels

      public void setLabels(Object labels)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the labels
      Parameters:
      labels - the object of labels as String or List
    • addChartDataSet

      public void addChartDataSet(ChartDataSet newDataSet)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a new dataSet as ChartDataSet data to dataSet option
      Parameters:
      newDataSet -