mendixlabs / ChartJS

A Mendix widget that wraps the ChartJS library.
https://appstore.home.mendix.com/link/app/1712/Mendix/ChartJS-Widget
Apache License 2.0
4 stars 28 forks source link

Error Loading data view without context #70

Closed Andries-Smit closed 8 years ago

Andries-Smit commented 8 years ago

Check the Content of the context entity is set before rendering. Suggested also hide the domNode if context is empty, in case some case the context entity will be empty after being rendered for the first time

Should, the display should happen before or after the _loadData function?

JelteMX commented 8 years ago

I'm going to do some work on ChartJS these days, will look into your PR. Right now the display is there before the data, because channeling the callback from update through the whole flow might not be very stable. Also, the domNode is already there, so it doesn't matter whether or not the callback is already fired before _loadData