Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draw() not supposed to redraw the chart? #283

Open
infinity77 opened this issue Sep 23, 2020 · 0 comments
Open

draw() not supposed to redraw the chart? #283

infinity77 opened this issue Sep 23, 2020 · 0 comments

Comments

@infinity77
Copy link

What you were expecting:

Following the documentation:

draw(config, scale) redraws chart using given configuration and d3.scaleTime scale

I was naively expecting that I could update the zoom in the chart (without recreating a new one) by giving it a new domain interval, such as:

var xScale = d3
        .scaleTime()
        .domain([new_start_date, new_end_date])

chart.draw(config, xScale);

So that the interval new_start_date and new_end_date would be in focus.

What happened instead:

Chart is not redrawn. Nothing happens.

Other information:

I am forced to use the package at https://unpkg.com/[email protected]/dist/index.js as I have no way to run npm on this locked machine.

Environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant