PieChart

(esrith/amos/chart/PieChart)

PieChart control is use to create a pie chart of data.

Description
new PieChart(params?srcNodeRef?)

Create a new pie chart.

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.
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.
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 PieChart(params?srcNodeRef?)

Create a new pie chart.

Parameters:
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>
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
Type of chart.
<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