Interface Chart<SELF,O extends Options<?,?>,D extends AbstractData<?,?>>
- All Known Implementing Classes:
AbstractChart
,BarChart
,BubbleChart
,DoughnutChart
,HomogeneousChart
,LineChart
,MixedChart
,PieChart
,PolarChart
,RadarChart
,ScatterChart
public interface Chart<SELF,O extends Options<?,?>,D extends AbstractData<?,?>>
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
boolean
Optional check to determine whether the current state of thisChart
implementation instance will generate a drawable JSON string.setOptions
(O options) default String
toJson()
Same astoJsonNative()
but also check if the diagramis drawable
Convertthis
instance to Json for use with Chart.js library.
-
Method Details
-
getType
String getType()- Returns:
- type of this
Chart
implementation for proper drawing in JavaScript.
-
toJsonNative
String toJsonNative()Convert
this
instance to Json for use with Chart.js library.- Returns:
- json representation of
this
Chart
-
toJson
Same astoJsonNative()
but also check if the diagramis drawable
- See Also:
-
isDrawable
boolean isDrawable()Optional check to determine whether the current state of this
Chart
implementation 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
this
Chart
is drawable in its current state
-
setOptions
-
setData
-