Package org.pepstock.charba.client
Class Chart
- java.lang.Object
-
- org.pepstock.charba.client.Chart
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedChart(Context2dItem context, NativeObject configuration)Builds CHART object at CHART.JS level.
This constructor MUST be empty.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCharbaId()Returns the CHARBA ID, set to the chart.IsChartgetChart()Returns the CHARBA chart ornullif CHARBA id is not present in the CAHRT.JS chart options.static ArrayChartgetInstances()Returns theinstancesproperty by native object.
-
-
-
Constructor Detail
-
Chart
protected Chart(Context2dItem context, NativeObject configuration)
Builds CHART object at CHART.JS level.
This constructor MUST be empty.- Parameters:
context- represents a flat cartesian surface whose origin (0,0) is at the top left corner, with the coordinate space having x values increasing when going right, and y values increasing when going down.configuration- configuration of CHART (native object).
-
-
Method Detail
-
getInstances
@JsProperty public static ArrayChart getInstances()
Returns theinstancesproperty by native object.- Returns:
- the
instancesproperty by native object.
-
getCharbaId
@JsOverlay public String getCharbaId()
Returns the CHARBA ID, set to the chart.- Returns:
- the CHARBA ID
- See Also:
Id
-
getChart
@JsOverlay public IsChart getChart()
Returns the CHARBA chart ornullif CHARBA id is not present in the CAHRT.JS chart options.- Returns:
- the CHARBA chart or
nullif CHARBA id is not present in the CAHRT.JS chart options
-
-