Skip to content

setFilter() promise doesn't wait for chart to updateΒ #53

@NGPixel

Description

@NGPixel

Describe the bug
When calling setFilter() on an existing chart, the returned promise completes immediately instead of waiting for the chart to actually update.

This makes it impossible to show a loading message to the user while the chart is updating. The chart just stays in its current state until the new data is loaded, which is very confusing to the user as it can take several seconds to do so depending on the chart/filters.

To Reproduce
Steps to reproduce the behavior:

  1. Create a chart and call render()
  2. Set new filters on the existing chart using setFilter()
  3. Promise returns right away even though the chart hasn't updated yet.

Expected behavior
The promise should wait for the chart to be updated before succeeding.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: 94

SDK Version
2.1.0

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