Home / Companies / Mergify / Blog / Post Details
Content Deep Dive

Making Dashboard Charts Actually Useful: Brush Zoom, Click-to-Filter, and Shareable URLs with ECharts

Blog post from Mergify

Post Details
Company
Date Published
Author
-
Word Count
1,420
Language
English
Hacker News Points
-
Summary

In an effort to enhance the functionality of dashboard charts, the integration of brush zoom, click-to-filter, and shareable URLs was implemented using ECharts, transforming static charts into interactive tools. This involved enabling users to visually drill into time ranges with brush zoom, apply filters directly by clicking on chart segments, and share specific views via URL state persistence. The challenges addressed included coordinating the brush zoom across multiple charts, refactoring state management for click-to-filter functionality, and ensuring URL state accurately reflected the view, including handling edge cases like sidebar navigation. These enhancements eliminated the need for manual screenshot sharing, as users can now share precise, interactive data views through URLs, improving data exploration and collaboration. The approach emphasized the importance of building URL state persistence from the outset and treating chart interactions as state mutations for seamless synchronization across dashboard elements.