indexById

returns the index of the item with the specified ID

void indexById(string|number id);

Parameters

idstring|numberID of the item in question

Example

var index = myChart.indexById(id);

Back to top