Skip to content

Conversation

@khanguslee
Copy link
Collaborator

@khanguslee khanguslee commented Feb 14, 2022

Given the v1.30 update of Charts, the promise return from embedded chart's render and refresh methods will now wait for data to fetch.

With the timeline example, if you were to interact with the example whilst the chart is still loading, an error will be shown. This PR disables the interactive controls on the timeline example and enables them once all Charts have been rendered.

I have checked all other examples in this repo and believe that this does not occur anywhere else.

Before

Interact with the interactive controls before charts have been rendered.

Screen.Recording.2022-02-14.at.3.12.49.pm.mp4

After

Interactive controls have been disabled.

Screen.Recording.2022-02-14.at.3.14.27.pm.mp4

@khanguslee khanguslee added the bug Something isn't working label Feb 14, 2022
@khanguslee khanguslee self-assigned this Feb 14, 2022
Copy link

@shaketbaby shaketbaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@kristinamongo kristinamongo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks Angus! 💯

@khanguslee khanguslee merged commit b18f5c4 into master Feb 16, 2022
@khanguslee khanguslee deleted the fix/CHARTS-6412-update-example-refresh branch February 16, 2022 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants