@JsType(isNative=true,
name="Chart",
namespace="<global>")
public final class Chart
extends java.lang.Object
Chart
the entry point of CHART.JS.Modifier | Constructor and Description |
---|---|
protected |
Chart(com.google.gwt.canvas.dom.client.Context2d context,
Configuration configuration)
Builds CHART object at CHART.JS level.
This constructor MUST be empty. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharbaId()
Returns the CHARBA ID, set to the chart.
|
IsChart |
getChart()
Returns the CHARBA chart or
null if CHARBA id is not present into CAHRT.JS chart options. |
protected Chart(com.google.gwt.canvas.dom.client.Context2d context, Configuration configuration)
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).@JsOverlay public java.lang.String getCharbaId()
Id
@JsOverlay public IsChart getChart()
null
if CHARBA id is not present into CAHRT.JS chart options.null
if CHARBA id is not present into CAHRT.JS chart options