Package org.primefaces.model.charts.bar
Class BarChartModel
- java.lang.Object
-
- org.primefaces.model.charts.ChartModel
-
- org.primefaces.model.charts.bar.BarChartModel
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HorizontalBarChartModel
public class BarChartModel extends ChartModel
Defines the bar model used to create bar chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BarChartModel()BarChartModel(ChartData data, BarChartOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartDatagetData()Gets the data to create dataSetsBarChartOptionsgetOptions()Gets the configuration optionsStringgetType()Gets the typevoidsetData(ChartData data)Sets the data to create dataSetsvoidsetOptions(BarChartOptions options)Sets the configuration options-
Methods inherited from class org.primefaces.model.charts.ChartModel
getExtender, setExtender
-
-
-
-
Constructor Detail
-
BarChartModel
public BarChartModel()
-
BarChartModel
public BarChartModel(ChartData data, BarChartOptions options)
-
-
Method Detail
-
getType
public String getType()
Gets the type- Specified by:
getTypein classChartModel- Returns:
- type of current chart
-
getData
public ChartData getData()
Gets the data to create dataSets- Specified by:
getDatain classChartModel- Returns:
- data
-
setData
public void setData(ChartData data)
Sets the data to create dataSets- Parameters:
data- TheChartDataobject
-
getOptions
public BarChartOptions getOptions()
Gets the configuration options- Specified by:
getOptionsin classChartModel- Returns:
- options
-
setOptions
public void setOptions(BarChartOptions options)
Sets the configuration options- Parameters:
options- TheBarChartOptionsobject
-
-