You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we have a stacked chart (bar, line, or area) and we disable the visibility of some series, the statistics for those series do not display in the legend.
This behavior is inconsistent because we show statistics for invisible series in non-stacked charts.
The root cause is this line in the code: stacked_series_utils.ts#L61, which filters out the series, preventing them from displaying in the legend. We do that because otherwise the series ‘hang’ in the air when painting them because the invisible series are included in the calculations. This is how it looks if I remove the if (isFiltered) return line:
Instead of this, I tried to sort the series to place invisible series on the top:
mbondyra
changed the title
[Legend Statistics] After toggling visibility of the series for stacked chart, the stats are not displayed for this series
[Legend Statistics] After toggling visibility of the series for stacked chart, the stats are not displayed for the series
Jun 27, 2024
Describe the issue
Main
When we have a stacked chart (bar, line, or area) and we disable the visibility of some series, the statistics for those series do not display in the legend.
This behavior is inconsistent because we show statistics for invisible series in non-stacked charts.
The root cause is this line in the code: stacked_series_utils.ts#L61, which filters out the series, preventing them from displaying in the legend. We do that because otherwise the series ‘hang’ in the air when painting them because the invisible series are included in the calculations. This is how it looks if I remove the
if (isFiltered) return
line:Instead of this, I tried to sort the series to place invisible series on the top:
This way they won't impact stacking, but they can still display in the legend. However, it breaks some other cases.
@nickofthyme could you advise? 🙏🏼
The text was updated successfully, but these errors were encountered: