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