Class: upChartControl

upChartControl


new upChartControl()

ChartControl Object

Methods


getCategoryAxis(p_oHtml)

Get a chart category axis object.

Parameters:
Name Type Description
p_oHtml Object

html element of the chart control


getChart(p_oHtml)

Get a chart object.

Parameters:
Name Type Description
p_oHtml Object

html element of the chart control


getData(p_oChart)

Get chart data.

Parameters:
Name Type Description
p_oChart Object

reference the Chart Object

Returns:

amcharts data object


getGraphs(p_oHtml)

Get a chart graph object.

Parameters:
Name Type Description
p_oHtml Object

html element of the chart control


getValueAxis(p_oHtml)

Get a chart value axis object.

Parameters:
Name Type Description
p_oHtml Object

html element of the chart control


reload(p_oChart)

Reload the chart.

Parameters:
Name Type Description
p_oChart Object

reference the Chart Object


removeData(p_oChart)

Remove chart data.

Parameters:
Name Type Description
p_oChart Object

reference the Chart Object


setData(p_aChartData, p_oChart)

Set chart data

Parameters:
Name Type Description
p_aChartData Array

data array (see example) for the DataProvider

p_oChart Object

reference the Chart Object

Example
data DataProvider:

chartData = [{
  "kat"               : [categoryValue-a], {string|number}
  "[columnValue1]" : [chartValue1-a],   {string|number}
  "[columnValue2]" : [chartValue2-a]    {string|number}
},{
  "kat"               : [categoryValue-b], {string|number}
  "[columnValue1]" : [chartValue1-b],   {string|number}
  "[columnValue2]" : [chartValue2-b]    {string|number}
}]