- All Known Implementing Classes:
AbstractChart,BarChart,BubbleChart,DoughnutChart,LineChart,PieChart,PolarChart,RadarChart,ScatterChart
-
Method Summary
Modifier and TypeMethodDescriptiongetType()booleanOptional check to determine whether the current state of thisChartimplementation instance will generate a drawable JSON string.setOptions(O options) toJson()Convertthisinstance to Json for use with Chart.js library.
-
Method Details
-
getType
String getType()- Returns:
- type of this
Chartimplementation for proper drawing in JavaScript.
-
toJson
String toJson()Convert
thisinstance to Json for use with Chart.js library.- Returns:
- json representation of
thisChart
-
isDrawable
boolean isDrawable()Optional check to determine whether the current state of this
Chartimplementation instance will generate a drawable JSON string.Implementations provide a best-effort evaluation, and can not guarantee that the serialized chart will be rendered correctly.
- Returns:
- true if
thisChartis drawable in its current state
-
setOptions
-
setData
-