Skip to content
Reference > Classes

ChartPanelLayer

Definition

ChartPanelLayer var = .... ;

Extends

Extended By

Description

Panel for Chart Layer

Method Summary

Owner Name Return Type Description
DashboardResource getCallback(callbackName) Callback Returns a callback by name
DashboardResource getCallbacks() Map Returns a map of all callback definitions.
ChartPanelLayer getChart() ChartPanel Returns the chart panel this layer belongs to.
DashboardResource getChildren() List Returns a list of the child dashboard resources.
Object getClassName() String Returns the string name of this object's class type.
DashboardResource getDRI() String Returns the Dashboard Resource Indicator (DRI) as a string. DRI is the unique identifier of this resources within the entire dashboard.
DashboardResource getDashboardResourceType() String Returns the Dashboard Resource Type as a string
ChartPanelLayer getDatamodel() Datamodel Returns the underlying datamodel used by the layer.
ChartPanelLayer getFormula(fieldname) String Returns the formula for the given field.
DashboardResource getFormulaNames() Set Returns a set of the names of all formulas for this object.
DashboardResource getFormulas() Map Returns a map of all available formulas for this object. The key is the formula name.
DashboardResource getLRI() String Returns the Localized Resource Indicator (LRI) as a string. LRI is the unique identifier of this resource with the parent element.
DashboardResource getOwner() DashboardResource Returns the DashboardResource that owns this object.
ChartPanelLayer getPlot() ChartPanelPlot Returns the plot this layer belongs to.
ChartPanelLayer getSelected() Table get the rows from underlying data that are represented by selected items in this layer
ChartPanelLayer getStyle(styleKey, index) String Returns the value associated with the supplied style key in this panel's style as a string. Returns Null if key not found.
ChartPanelLayer getStyle(styleKey) String Returns the value for a particular style given the style code, which can be obtained by clicking on the style name. Returns Null if key not found.
ChartPanelLayer getXAxis() ChartPanelAxis Returns the x-axis of the layer.
ChartPanelLayer getYAxis() ChartPanelAxis Returns the y-axis of the layer.
ChartPanelLayer getZPosition() Integer Returns the z-position of the layer.
DashboardResource invokeCallback(callbackName, args) Object Executes the specified callback definition and returns the result from the callback.
DashboardResource isTransient() Boolean Returns true if this is transient, false otherwise. Transient objects are not saved to the layout.
ChartPanelLayer resetFormulas() Boolean Resets the formulas to the default (as set in the heatmap's Setting panel).
ChartPanelLayer setFormula(fieldname, value) String Sets the formula for the given field. For field name, use xLbl for X Groupings, yLbl for Y Groupings, name for Group By, and where for Where clause.
Object toJson() String Returns a json representation of this object.

Method Definitions


getChart()

ChartPanel ChartPanelLayer::getChart()

Description

Returns the chart panel this layer belongs to.


getDatamodel()

Datamodel ChartPanelLayer::getDatamodel()

Description

Returns the underlying datamodel used by the layer.


getFormula(fieldname)

String ChartPanelLayer::getFormula(String fieldname)

Description

Returns the formula for the given field.

Parameter Definition

Name Type Description
fieldname String  Field Name in the layer

getPlot()

ChartPanelPlot ChartPanelLayer::getPlot()

Description

Returns the plot this layer belongs to.


getSelected()

Table ChartPanelLayer::getSelected()

Description

get the rows from underlying data that are represented by selected items in this layer


getStyle(styleKey,index)

String ChartPanelLayer::getStyle(String styleKey, Number index)

Description

Returns the value associated with the supplied style key in this panel's style as a string. Returns Null if key not found.

Parameter Definition

Name Type Description
styleKey String  the key associated with this portlets style
index Number  If the style is a list, which element in the list to return

getStyle(styleKey)

String ChartPanelLayer::getStyle(String styleKey)

Description

Returns the value for a particular style given the style code, which can be obtained by clicking on the style name. Returns Null if key not found.

Parameter Definition

Name Type Description
styleKey String  the key associated with this portlet's style

getXAxis()

ChartPanelAxis ChartPanelLayer::getXAxis()

Description

Returns the x-axis of the layer.


getYAxis()

ChartPanelAxis ChartPanelLayer::getYAxis()

Description

Returns the y-axis of the layer.


getZPosition()

Integer ChartPanelLayer::getZPosition()

Description

Returns the z-position of the layer.


resetFormulas()

Boolean ChartPanelLayer::resetFormulas()

Description

Resets the formulas to the default (as set in the heatmap's Setting panel).


setFormula(fieldname,value)

String ChartPanelLayer::setFormula(String fieldname, String value)

Description

Sets the formula for the given field. For field name, use xLbl for X Groupings, yLbl for Y Groupings, name for Group By, and where for Where clause.

Parameter Definition

Name Type Description
fieldname String  Field Name in the layer. See description for a list of fields.
value String