Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1. #36853
Replies: 1 comment 2 replies
-
|
A few things can cause Superset charts to show as empty or with zero data even when everything appears to render fine with Playwright. The most common cause is a data type mismatch: if your query returns numeric values as strings instead of numbers, Superset charts may render as empty or only show NULL values. You can check this in SQL Lab—make sure your metrics/values are numeric, not string types. Fixing the data type in your query or database should resolve this for most chart types (source). If your data is truly zero, Superset will render an empty chart by design; Playwright just waits for rendering and doesn't alter the data (source). Also, confirm the issue isn't specific to a certain chart type or dataset by testing with different charts and data sources. For Playwright automation, ensure you wait for the dashboard and all chart containers to be visible, all loading spinners to disappear, and add a short delay (1–2 seconds) for chart animations to finish before taking screenshots (source). If you still see empty charts, check Superset permissions and configuration to make sure data visibility isn't restricted, and review logs or browser console for subtle errors. If you can share the chart type, data source, and a sample query result, I can help dig deeper. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Superset charts are integrated with PlayWright. All charts and data on the page render completely without any unexpected errors before screenshotting. However, there are instances where the data is 0 and the chart is empty. What could be the problem? I am using C# and Superset version 4.0.1.
Beta Was this translation helpful? Give feedback.
All reactions