itemClickJsFunction: Sets the name of the JavaScript function
which is called when the item is clicked.
In this sample, the JavaScript function (chartItemClickHandler) returns
the detailed information of series when you click the bar.
●Layout
<Bar2DChart showDataTips="true" itemClickJsFunction="chartItemClickHandler">
●Script
Parameters
seriesId: Series ID
displayText: The tooltips shown when the mouse over the item.
index: The index of the clicked item in the series.
data: The record of the dataset declared for creating the chart.
values: The value of the item. The value is an array and each element in the array is different depending on the chart type.
BarSeries 0: X-axis value, 1: Y-axis value
ColumnSeries 0: X-axis value, 1: Y-axis value
AreaSeries 0: X-axis value, 1: Y-axis value
BubbleSeries 0: X-axis value, 1: Y-axis value, 2: radius
LineSeries 0: X-axis value, 1: Y-axis value
PieSeries 0: value
function chartItemClickHandler(seriesId, displayText, index, data, values)
{
alert("seriesId:"+seriesId+"\ndisplayText:"+displayText+"\nindex:"+index+
"\ndata:"+data+"\nvalues:"+values);
}