previous

returns the ID of the previous item ( item with index == current - 1 )

void previous(string|number id);

Parameters

idstring|numberthe id of the item in question

Example

var prev_id = myChart.previous(id);

Back to top