Open kindunq opened 1 week ago
There is no specific event to mark completion of WordCloud rendering.
The only workaround I can think of is to use frameended
event. You can debounce the handler so it does not kick in until framended events stop triggering, e.g.:
var to;
root.events.on("frameended", () => {
if (to) {
clearTimeout(to);
}
to = setTimeout(() => {
readyFunction();
}, 500);
});
Question
I searched for I thought I was using "frameended", but I'm not.
If it's a word cloud chart, it's called as many times as there are words.
Am I using it wrong?
Environment (if applicable)
Additional context