Required library edition:
Required library file: dhtmlxchart.js
returns the ID of the last item ( item with index == dataCount-1 )
var id = chart.last();