Dashboards & Visualizations

JS Wait for Chart (defined in SimpleXML) finished rendering

bojanisch
Explorer

Hi everyone,

I'm trying to create images for my chart which works manually perfect. However applied after dashboard loading, even when triggered only after the search is completed, I'm getting most of the time "Waiting for data..." messages, maybe pointing to the problem that the visualization of the data taking longer than my JS capturing the panel.

alt text

Does someone know a flag or event for that I can listen for in order to capture the panel after everything has been visualized? I've already thought about several solutions, like writing everything in SplunkJS and using render() before capturing or simply waiting several seconds and then start the capture. However then I would loose flexibility, which I want to avoid.

Does someone had a similar challenge in the past or an idea for a flexible solution?

Best regards,
Bojan

0 Karma
Did you miss .conf21 Virtual?

Good news! The event's keynotes and many of its breakout sessions are now available online, and still totally FREE!