Skip to content

Updating from, to on mount renders partial histogram bars #36

Open
@hsks

Description

@hsks

Steps to reproduce

  1. Update the from and to range of the histogram using the update() method once the histogram is mounted.
  2. Once in a while, refresh the page/re-mount the component.

Observation
The histogram is partially rendered.

I think the canvas is in the midst of painting the graph while an update is triggered.
The extent to which the bars are rendered depends on how quick the component renders. If the component is moderately light, the partial rendering of the histogram is visible as shown:
Screenshot 2021-04-12 at 10 06 55 PM

This is taken from the example histogram provided in the source directory.

A possible workaround is an explicit wait for the rendering of the histogram to complete, would be great if there could be an event raised once the histogram has completed rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions