Fix: Chart Legend Pagination Buttons Now Working in all charts
Previously, when a chart had many legend items (e.g., multiple phone numbers, categories, or series), the legend would show pagination controls (page arrows and a page indicator like "1/5") to let users browse through all legend entries. However, clicking these pagination buttons had no effect, the legend was stuck on the first page, making it impossible to view or interact with legend items beyond what was initially visible.
What was happening:
When a user clicked anywhere on a chart, including the legend pagination arrows — the system treated it as a general chart selection action. This caused the entire chart to refresh instantly, which interrupted the pagination action before it could complete. On top of that, even if pagination did work momentarily, the page position would reset back to page 1 every time the chart refreshed.
What we fixed:
- The legend pagination arrows and page indicator now respond correctly to clicks. Users can freely navigate forward and backward through all legend pages.
- The current legend page is now remembered. If the chart refreshes or updates (e.g., due to filtering or selecting data), the legend stays on whichever page the user was viewing instead of jumping back to page 1.
Impact:
This affects all chart types:
- Bar Chart
- Stacked Column Chart
- Clustered Bar Chart
- Clustered Column Chart
- Horizontal Bar Chart
- Percent Stacked Bar Chart
- Percent Stacked Column Chart
- Stacked Area Chart
- Percent Stacked Area Chart
- Line Chart
- Area Chart
- Pie Chart
- Donut Chart
- Bubble Chart
- Bubble 3D Chart
- Radar Chart
- Scatter Trendline Chart
- Line & Column Chart
- Line & Clustered Column Chart