Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DrillDown stack is not cleared when one nagivates away from a page with a chart and then come back later, causing weird display behaviors & AIOOB Exception #483

Closed
echarlus opened this issue Dec 20, 2017 · 1 comment

Comments

@echarlus
Copy link

When a chart has drill down enabled and is currently in a drill-down state, the drilldownStack in ChartServerRpcImplementation contains the Series that have been drilled-down to.
If the chart is embedded in a TabSheet and one navigates away to another sheet while the chart had been drilled-down and then one come back to the tab containing the chart, the chart will be displayed in it's original (non drilled down) state instead of in the previous drill-down state. However the stack will still contain the previous drilled-down series which will cause the crash/problem when ChartServerRpcImplementation.resolveSeriesFor(index) is called from onChartDrilldown() because it will use the series on the stack rather than call getConfiguration().getSeries().get(seriesIndex);
Thus the wrong series is returned and it causes issues.
One way to fix this is to add a new method to chart to allow to programmatically reset the drill down state when the view is displayed.

alvarezguille added a commit that referenced this issue Mar 19, 2018
oluwasayo pushed a commit that referenced this issue Mar 20, 2018
@alvarezguille
Copy link
Member

Fixed by #502

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants