Class Chart

  • All Implemented Interfaces:
    IsJSType

    @JsType(isNative=true,
            name="Chart",
            namespace="<global>")
    public final class Chart
    extends Object
    implements IsJSType
    Native object which import the CHART java script object of CHART.JS.
    The Chart the entry point of CHART.JS.
    Author:
    Andrea "Stock" Stocchero
    • 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 the instances 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 or null 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