BarChart

(esrith/amos/chart/BarChart)

BarChart control is use to create a bar chart of data.

Description
new BarChart(params?srcNodeRef?)

Create a new bar chart.

Description
BOTTOM

BOTTOM : BOTTOM

RIGHT

RIGHT : RIGHT

TOP

TOP : TOP

TYPE_BARS

TYPE_BARS : Bars

TYPE_CLUSERBARS

TYPE_CLUSERBARS : ClusterBars

TYPE_CLUSTEREDCOLUMNS

TYPE_CLUSTEREDCOLUMNS : ClusteredColumns

TYPE_COLUMNS

TYPE_COLUMNS : Columns

TYPE_STACKEDCOLUMNS

TYPE_STACKEDCOLUMNS : StackedColumns

Type Description
_styleAttr Object when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value
categoryField String Field name for group of chart.
displayedValue String Field name for the values presently display in the controls.
isCalculateExtent Boolean If isCalculateExtent is true, chart will be expand for gap of data.
labels Boolean If labels is true, will show the label of chart.
legendPosition String

Position of legend of chart. (See constants.)

plotChartName String Name of plotDef.
plotDef Object

plotDef is configurations of chart.

plotNameField String Field name for name of chart.
resizeChart Boolean

If resizeChart is true, will auto resize the chart to fit div container.

seriesField String Field name for the series of legend.
type String

Type of chart. (See constants.)

valField String Field name for value of chart.
xAxis Object Define configurations of horizontal axis.
xValueField String Field name for value of horizontal axis.
yAxis Object Define configurations of vertical axis.
Return type Description
__baseClassInherit(constructor) None get className from superclass.
Constructors Detail
new BarChart(params?srcNodeRef?)

Create a new bar chart.

Parameters:
constants Detail
<String>
BOTTOM

BOTTOM : BOTTOM

<String>
RIGHT

RIGHT : RIGHT

<String>
TOP

TOP : TOP

<String>
TYPE_BARS

TYPE_BARS : Bars

<String>
TYPE_CLUSERBARS

TYPE_CLUSERBARS : ClusterBars

<String>
TYPE_CLUSTEREDCOLUMNS

TYPE_CLUSTEREDCOLUMNS : ClusteredColumns

<String>
TYPE_COLUMNS

TYPE_COLUMNS : Columns

<String>
TYPE_STACKEDCOLUMNS

TYPE_STACKEDCOLUMNS : StackedColumns

Properties Detail
<Object>
_styleAttr
when you want to set style for other node. you can do this by example... _styleAttr:{ style-property:effected-node } this property was effected where this class was inherited and your widget was called by... var widget = new YourWidget({ style:{ style-property:style-value } }); now effected-node in you widget will have style-property = style-value

Default value: {}

<String>
categoryField
Field name for group of chart.

Default value: "CAT_NAME"

<String>
displayedValue
Field name for the values presently display in the controls.

Default value: "PLOT_VAL"

<Boolean>
isCalculateExtent
If isCalculateExtent is true, chart will be expand for gap of data.

Default value: false

<Boolean>
labels
If labels is true, will show the label of chart.

Default value: true

<String>
legendPosition

Position of legend of chart. (See constants.)

Default value: "BOTTOM"

<String>
plotChartName
Name of plotDef.

Default value: "default"

<Object>
plotDef

plotDef is configurations of chart.

<String>
plotNameField
Field name for name of chart.

Default value: "PLOT_NAME"

<Boolean>
resizeChart

If resizeChart is true, will auto resize the chart to fit div container.

Default value: true

<String>
seriesField
Field name for the series of legend.

Default value: "SERIE_NAME"

<String>
type

Inherited from _ChartBase but overwritten in esrith/amos/chart/BarChart.js:167

Type of chart. (See constants.)

<String>
valField
Field name for value of chart.

Default value: "VAL"

<Object>
xAxis
Define configurations of horizontal axis.
<String>
xValueField
Field name for value of horizontal axis.

Default value: "X_VAL"

<Object>
yAxis

Inherited from _ChartBase but overwritten in esrith/amos/chart/_ChartBase.js:149

Define configurations of vertical axis.
Methods Detail
__baseClassInherit
(
  • constructor
)
get className from superclass.
Parameters
  • <Object> constructor Required