Required library edition:
Required library file: dhtmlxchart.js
returns ID of first item ( item with index == 0 )
var id = chart.first();