Skip to content

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

@infinity77

Description

@infinity77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions