Bug report: Trends - total value bar chart renders empty even when data exists
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 6h 51m
- Merged PRs (30d)
- 232
Description
Bug Description
Please describe
A Trends insight using "Property value sum" on a numeric property across multiple series shows data correctly in the most visualizations (e.g. Total Value > Table view and Time Series > Bar chart, but incorrectly shows There are no matching events for this query empty when the Total Value > Bar chart visualization is selected.
How to reproduce
- View this reported example or create a Trends insight with one or more series using "Property value sum" on a numeric event property, each with a property filter (e.g. filtering by a category value)
- Switch the visualization to Total Value > Bar chart
- See the
There are no matching events for this querymessage - Switch the visualization type to
Total Value > Tableand see that the data appears correctly, with expected sums - Switch to
Time Series > Bar chart: data also appears correctly
(Step 3 is where you'll see the bug.)
Additional context
From: https://posthoghelp.zendesk.com/agent/tickets/59052 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/59997)
Debug info
Debug info
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019e662e-581a-75e9-b409-3bf91ad5e8fe?t=740
Admin: http://go/adminOrgUS/018fa11a-6593-0000-fc53-807b51d0120e (project ID 70162)
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
Start by reproducing the linked Trends insight and compare Total Value > Bar chart with Total Value > Table and Time Series > Bar chart. Trace the Trends visualization entry point for the Total Value bar chart and its handling of Property value sum data with property filters. Done means the bar chart displays the existing sums instead of the empty-state message, without regressing the other visualizations.
Written by the indexing model from the issue text.
Assessment
- Domain
- analytics, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100