-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
[Chart] Toggling legends in Stacked Bar Chart v2 does not update total values #20860
Comments
Hi I've investigated this bug, from what I can tell there's no way to fix this without waiting for echarts to add the total value bar functionality or making our own legend Since legend selection is handled by echarts the only way for superset to know what is selected is the In both the below I was overloading the label formatter for each series. I tried using a react State in the formatter to hold the selected legend values, this caused the graph to render twice undoing the hidden bar in the process. Once before and once after the value update I also tried using a react Ref in the formatter this cased the number to not reflect the actual data selected because I think one other option is to give EchartsTimeseries a way to give the newly selected legends to transformers.ts causing a redraw but with the current SuperChartCore.tsx I don't see a way to do that |
@ktmud @RaymondBakerIBM If no one is assigned to this issue or no one is working on this issue, I would like to work on this. |
Fixed by #24477 |
Time-series Bar Chart v2 does not update total values for stacked bar chart when toggling legends.
How to reproduce the bug
The legacy Time-series Bar Chart does not have this issue.
Screenshots
stacked-value-total-update.mp4
Environment
Latest master
Checklist
Make sure to follow these steps before submitting your issue - thank you!
The text was updated successfully, but these errors were encountered: