Required library edition:
Required library file: dhtmlxchart.js
returns the ID of the next item ( item with index == current + 1 )
var next_id = chart.next(id);