Package org.pepstock.charba.client
Class Chart
- java.lang.Object
-
- org.pepstock.charba.client.Chart
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Chart(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 String
getCharbaId()
Returns the CHARBA ID, set to the chart.IsChart
getChart()
Returns the CHARBA chart ornull
if CHARBA id is not present in the CAHRT.JS chart options.static ArrayChart
getInstances()
Returns theinstances
property 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 theinstances
property by native object.- Returns:
- the
instances
property 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 ornull
if CHARBA id is not present in the CAHRT.JS chart options.- Returns:
- the CHARBA chart or
null
if CHARBA id is not present in the CAHRT.JS chart options
-
-