DHTMLX Docs & Samples Explorer

last ()

Required library edition: This method works with any edition of DHTMLX library

Required library file: dhtmlxchart.js

returns the ID of the last item ( item with index == dataCount-1 )

	var id = chart.last();