We believe that when we use David Gilbert's wonderful StackedBarPlotRenderer, the chartEntity in the code excerpt below never is an instance of CategoryItemEntity - how can we get it to be a CategoryItemEntity????? Does the StackedBarRenderer prohibit receiving CategoryItemEntity?
chartEntity chartEntity = event.getEntity();
if (chartEntity != null) {
if (chartEntity instanceof CategoryItemEntity)
Use of StackedBarRenderer and getting CategoryItemEntity
Re: Use of StackedBarRenderer and getting CategoryItemEntity
It is supposed to.
What is the type of entity you are getting
What is the type of entity you are getting
Code: Select all
System.out.println(chartEntity.getClass().getSimpleName());
Re: Use of StackedBarRenderer and getting CategoryItemEntity
we are getting a plot entity