I get a chartEntity object from a ChartMouseEvent (i.e. ChartEntity entity = event.getEntity(); ). Are there any access methods to get the category or row text from the entity? I can view the values by doing a entity.toString(), but I can't find "get" methods to access the data.
thanks
ChartMouseEvent question
Try something like this:
That's for a category data plot. I'm sure it would be similar for other plots. Just see what type of Entity, e.getEntity is giving you and typecast accordingly
Code: Select all
CategoryItemEntity categoryItem = (CategoryItemEntity)e.getEntity();
String selectedName = categoryItem.getColumnKey().toString();