CivicTechTO / CivicTechTO/tRacket-dashboard

Line chart zoom sync bug

Open
#15 3 comments 0 reactions 0 assignees View on GitHub
bug good first issue wontfix
Dominant language
Jupyter Notebook
Stars
7
Forks
7
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
If one line chart is zoomed in and then the other zoomed out, the second syncing does not happen despite the current callback watching for changes in plot properties.

**To Reproduce**
Start the dashboard.
1. Zoom in the first chart (the two plots will sync still).
2. Zoom out on the second chart.
3. See error: now the two plots are out of sync.

image

**Expected behavior**
The syncing callback should keep the two line chart zoom setting in sync at all times regardless of the order of zooming.

**Additional context**
Look at `app_components.py` and the `update_zoom()` callback.

Contributor guide

No contributing guide indexed for this repository

Research direction

Open app_components.py and inspect the update_zoom() callback. Start the dashboard and reproduce the issue by zooming the first line chart in, then zooming the second out. Done means both line charts remain zoomed to the same setting regardless of which chart is changed first.

Written by the indexing model from the issue text.

Assessment

Tech stack
plotly, python
Domain
data-visualization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.