draw() not supposed to redraw the chart?
infinity77 opened this issue · 0 comments
infinity77 commented
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/event-drops@1.3.0/dist/index.js as I have no way to run npm on this locked machine.
Environment
- EventDrops version: https://unpkg.com/event-drops@1.3.0/dist/index.js
- Browser: Chrome