c3js / c3js/c3

[API] issue to reset zoom option properly

Open
#2,593 1 comment 0 reactions 0 assignees View on GitHub
C-bug
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

Hi,

I have an issue with zoom option .

On this example : https://c3js.org/samples/interaction_zoom.html

I have added this section of code
`setTimeout(function () {
chart.unzoom();
}, 5000);`

**Procedure to reproduce my issue :**

1. zoom on the chart
1. after 5 seconds zoom is reset
1. then try to zoom again, the zoom domain hasn't been really reset isn't it ?

How can we reset the zoom properly ?

Best reguards,
Leo.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior in the interaction_zoom.html sample using chart.unzoom() after the setTimeout shown in the issue. Trace the zoom reset entry point and verify that, when done, a later zoom begins from the chart's original domain rather than the previous zoom state.

Written by the indexing model from the issue text.

Assessment

Tech stack
d3, javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.