public class ChartModel extends Object implements Serializable
The main model for ChartistJSF
| Modifier | Constructor and Description |
|---|---|
|
ChartModel() |
protected |
ChartModel(ChartModel chartModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(Object label)
Adds a label
|
void |
clearLabels()
Clears the added labels
|
AspectRatio |
getAspectRatio()
Specify a ratio directly on chart without the need to calculate any fixed
dimensions
|
String |
getChartPadding()
Padding of the chart drawing area to the container element and labels as
a number or padding object {top: 5, right: 5, bottom: 5, left: 5}
|
String |
getHeight()
Specify a fixed height for the chart as a string (i.e.
|
List<Object> |
getLabels()
Returns the current labels
|
String |
getResponsiveOptions()
Specify an array of responsive option arrays which are a media query and
options object pair => [[mediaQueryString, optionsObject],[more...]]
|
String |
getStyleClass() |
String |
getWidth()
Specify a fixed width for the chart as a string (i.e.
|
boolean |
isAnimateAdvanced()
Enables Advanced SMIL animations
|
boolean |
isAnimatePath()
Enables SVG path animation
|
boolean |
isReverseData()
If true the whole data is reversed including labels, the series order as
well as the whole series data arrays.
|
boolean |
isShowTooltip()
Enables tooltips over the points
|
void |
setAnimateAdvanced(boolean animateAdvanced)
Enables Advanced SMIL animations
|
void |
setAnimatePath(boolean animatePath)
Enables SVG path animation
|
void |
setAspectRatio(AspectRatio aspectRatio) |
void |
setChartPadding(String chartPadding)
Padding of the chart drawing area to the container element and labels as
a number or padding object {top: 5, right: 5, bottom: 5, left: 5}
|
void |
setHeight(String height)
Specify a fixed height for the chart as a string (i.e.
|
void |
setResponsiveOptions(String responsiveOptions)
Specify an array of responsive option arrays which are a media query and
options object pair => [[mediaQueryString, optionsObject],[more...]]
|
void |
setReverseData(boolean reverseData)
If true the whole data is reversed including labels, the series order as
well as the whole series data arrays.
|
void |
setShowTooltip(boolean showTooltip)
Enables tooltips over the points
|
void |
setWidth(String width)
Specify a fixed width for the chart as a string (i.e.
|
public ChartModel()
protected ChartModel(ChartModel chartModel)
public void addLabel(Object label)
label - public void clearLabels()
public String getWidth()
public void setWidth(String width)
width - the width to setpublic String getHeight()
public void setHeight(String height)
height - the height to setpublic String getChartPadding()
public void setChartPadding(String chartPadding)
chartPadding - the reverseData to setpublic boolean isReverseData()
public void setReverseData(boolean reverseData)
reverseData - the reverseData to setpublic AspectRatio getAspectRatio()
AspectRatiopublic void setAspectRatio(AspectRatio aspectRatio)
aspectRatio - the aspectRatio to setpublic String getStyleClass()
public boolean isShowTooltip()
public void setShowTooltip(boolean showTooltip)
enableTooltip - the enableTooltip to setpublic String getResponsiveOptions()
public void setResponsiveOptions(String responsiveOptions)
responsiveOptions - the responsiveOptions to setpublic boolean isAnimateAdvanced()
public void setAnimateAdvanced(boolean animateAdvanced)
advancedAnimation - the advancedAnimation to setpublic boolean isAnimatePath()
public void setAnimatePath(boolean animatePath)
pathAnimation - the pathAnimation to setCopyright © 2016. All rights reserved.