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()booleanOptional check to determine whether the current state of thisChartimplementation instance will generate a drawable JSON string.setOptions(O options) default StringtoJson()Same astoJsonNative()but also check if the diagramis drawableConvertthisinstance to Json for use with Chart.js library.
-
Method Details
-
getType
String getType()- Returns:
- type of this
Chartimplementation for proper drawing in JavaScript.
-
toJsonNative
String toJsonNative()Convert
thisinstance to Json for use with Chart.js library.- Returns:
- json representation of
thisChart
-
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
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
-