Skip to content

Bug: Chart visualization doesn't respect ?order=breakdown_value URL parameter on reload, while table does #44074

@HaynesPostHog

Description

@HaynesPostHog

Bug Description

Bug description

When an Insights report URL includes ?order=breakdown_value, reloading the page breaks the sorting for the chart visualization. The table below the chart displays the correct sorted order, but the chart itself reverts to its original (unsorted) order.

How to reproduce

  1. Create an Insights report with a breakdown
  2. Sort the results by breakdown value (URL should include ?order=breakdown_value)
  3. Reload the page
  4. Observe that the chart visualization shows the original order, while the detailed results table shows the correct sorted order

For PostHog staff, the Loom in the ticket below is very useful

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/46009

Debug info

Kind: bug

Target area: analytics

Report event: http://go/ticketByUUID/430d62dd-79b0-4e12-b59f-ba8fd74bcdbf

Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/019b6aaf-b9f0-7448-b1be-3778ae9431bf?t=3739

Exceptions: https://us.posthog.com/project/2/error_tracking?filterGroup=%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22type%22%3A%22AND%22%2C%22values%22%3A%5B%7B%22key%22%3A%22%24session_id%22%2C%22value%22%3A%5B%22019b6aaf-b9f0-7448-b1be-3778ae9431bf%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22event%22%7D%5D%7D%5D%7D

Location: https://us.posthog.com/project/125499/dashboard/951445

Persons-on-events mode for project: person_id_override_properties_on_events

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions