Commit fba0914
authored
spec: add line-interactive specification (#2788)
## New Specification: `line-interactive`
Related to #2787
---
### specification.md
# line-interactive: Interactive Line Chart with Hover and Zoom
## Description
An interactive line chart that enables detailed data exploration through
hover tooltips, zoom/pan functionality, and range selection. Unlike
static line charts, this visualization allows users to examine exact
values on hover, zoom into areas of interest, and select time ranges for
focused analysis. It excels at making large time series accessible and
revealing fine-grained patterns that would be lost in static views.
## Applications
- Exploring financial data with ability to zoom into specific trading
periods and see exact prices
- Analyzing sensor data or IoT metrics where users need to drill down
into anomalies
- Interactive dashboards for monitoring website traffic with range
selection for period comparison
## Data
- `x` (numeric/datetime) - Sequential or time values representing the
independent variable
- `y` (numeric) - Continuous values representing the measured quantity
- Size: 50-1000+ points (interactivity handles larger datasets well)
- Example: Stock prices over time, hourly server metrics, daily
temperature readings
## Notes
- Hover tooltips should display exact x and y values with appropriate
formatting
- Zoom should support both mouse wheel and click-drag box selection
- Pan functionality for navigating zoomed views
- Range selector or slider for quick navigation of time series
- Reset zoom button to return to full view
- Smooth animations for zoom/pan transitions enhance user experience
---
**Next:** Add `approved` label to the issue to merge this PR.
---
:robot: *[spec-create
workflow](https://github.com/MarkusNeusinger/pyplots/actions/runs/20602201038)*
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>1 parent a6c49df commit fba0914
2 files changed
Lines changed: 58 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments