Package org.primefaces.model.charts.pie
Class PieChartModel
java.lang.Object
org.primefaces.model.charts.ChartModel
org.primefaces.model.charts.pie.PieChartModel
- All Implemented Interfaces:
Serializable
Defines the pie model used to create pie chart component.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetData()
Gets the data to create dataSetsGets the configuration optionsgetType()
Gets the typevoid
Sets the data to create dataSetsvoid
setOptions
(PieChartOptions options) Sets the configuration optionsMethods inherited from class org.primefaces.model.charts.ChartModel
getExtender, setExtender
-
Constructor Details
-
PieChartModel
public PieChartModel() -
PieChartModel
-
-
Method Details
-
getType
Gets the type- Specified by:
getType
in classChartModel
- Returns:
- type of current chart
-
getData
Gets the data to create dataSets- Specified by:
getData
in classChartModel
- Returns:
- data
-
setData
Sets the data to create dataSets- Parameters:
data
- TheChartData
object
-
getOptions
Gets the configuration options- Specified by:
getOptions
in classChartModel
- Returns:
- options
-
setOptions
Sets the configuration options- Parameters:
options
- ThePieChartOptions
object
-