Quatters opened a new issue, #33349:
URL: https://github.com/apache/superset/issues/33349

   *Please make sure you are familiar with the SIP process documented*
   [here](https://github.com/apache/superset/issues/5602). The SIP will be 
numbered by a committer upon acceptance.
   
   ## [SIP] Proposal for Timeline Chart Visualization
   
   ### Motivation
   
   Apache Superset currently lacks support for timeline-based visualizations, 
which are essential for analyzing event sequences and durations across a 
horizontal time axis.
   
   These visualizations are widely used in:
   - logistics operations tracking,
   - user or system activity timelines,
   - manufacturing and process monitoring,
   - operations and delivery flow visualization.
   
   Current chart types such as bar, Gantt-like hacks, or boxplots do not 
sufficiently support the temporal range model and the required UI features 
(scrolling, zooming, duration visualization).
   
   Introducing a native Timeline Chart will address this gap, making Superset 
more suitable for operational dashboards where event flow over time is critical.
   
   ### Proposed Change
   
   I propose adding a new visualization plugin: **Timeline Chart**, built on 
**Apache ECharts**.
   
   Key features include:
   - Event durations represented as horizontal bars on a continuous time axis.
   - Category-based vertical grouping.
   - **Fixed left/right time boundaries**, enabling analysts to compare time 
intervals across days (e.g., 08:00:00–22:00:00).
   - Support for **nested subcategories** via a dimension field.
   - Zoom and scroll support via ECharts’ native interaction model.
   
   I used this example to implement plugin.
   - [ECharts Custom Timeline 
Demo](https://echarts.apache.org/examples/en/editor.html?c=custom-profile)
   
   How it looks in my implementation:
   
   
![Image](https://github.com/user-attachments/assets/df4b46c4-f1f5-4c2f-b69c-fa04e8556684)
   
![Image](https://github.com/user-attachments/assets/452f31fa-eb5a-45c0-83b5-098ba968090c)
   
   ### New or Changed Public Interfaces
   
   - A new chart plugin under `plugin-chart-echarts`
   - New customization controls in the Explore UI:
     - Time range bounds (left/right)
   - Expected input data format:
     - `start_time`, `end_time` (timestamps) for X axis
     - `y_axis` (categories)
     - `dimension` (optional) for legend
   
   ### New dependencies
   
   No.
   
   ### Migration Plan and Compatibility
   
   - No database migrations required.
   - The plugin is fully optional and does not affect backward compatibility.
   - URLs and saved charts that use this visualization will remain valid once 
the plugin is registered.
   
   ### Rejected Alternatives
   
   - **Using iframe-based external dashboards**: rejected due to poor 
integration and limited control.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to