Sample data placeholder chart is blank on the insight's own page (renders fine on the dashboard)
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 222
Description
Bug Description
On a project that hasn't ingested any events yet, dashboard tiles correctly show the fake "Sample data" placeholder chart. Opening one of those insights on its own page shows the "Sample data" tag and the wizard install snippet in the header, but the chart itself renders as a blank area.
https://github.com/user-attachments/assets/b310af11-1b7b-4323-841e-cb7df5a336bc
How to reproduce
- Create a new project.
- Do not send any data to that project yet.
- Look at the dashboard view.
- Open a chart (e.g. the starter dashboard's "Daily active users (DAUs)")
- The chart is empty
Debug info
- [x] PostHog Cloud, region and project ID: [please provide, you can find both at https://app.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the blank chart by comparing the dashboard tile with the same insight's standalone page in a new project without events. Trace how the Sample data placeholder is selected and rendered in both views; done means the standalone insight shows the same placeholder chart as the dashboard.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, typescript
- Domain
- analytics, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100