Chart ready output event
See original GitHub issueI’m submitting a … (check one with “x”)
[ ] bug report => search github for a similar issue or PR before submitting
[x] feature request
[ ] support request => Please do not submit support request here
Current behavior
we are have dashboard kind of UI and we have multiple charts (minimum 20) on a single page. i need to show a loading indicator whenever a chart gets completely rendered. currently i am showing loader before api call and binding charts data to it and hiding loader Whenever dashboard page renders all charts there is a flickering for all charts Expected behavior
after binding data to charts instead of hiding loader inside http callback i can disable it inside chart ready event. Reproduction of the problem
What is the motivation / use case for changing the behavior?
i am showing loader before chart loads. Also i am assuming chart animation will be triggered after chart ready triggered, so the flow in my case will be show loading before calling api > inside chart ready event hide loading > chart animation will get triggered i think it will improve performance atleast in my case Please correct me if i am wrong
Please tell us about your environment:
- ngx-charts version: 5.3.1
- Angular version: 4.1.3
- Browser: Chrome 59 | IE 11
- Language: TypeScript 2.2.0
Issue Analytics
- State:
- Created 6 years ago
- Reactions:23
- Comments:15
Top GitHub Comments
Unbelievable no one else has needed this feature before…
In my case, I subscribe for data and then set it. But in some cases, the data loads too quickly and it is set before the chart exists/is ready.