Feature Request: Custom sorting options for charts
Feature request
Is your feature request related to a problem?
Currently, bar charts in PostHog insights automatically sort bars by their values (dependent axis). This makes it difficult to analyze data where the natural ordering of the independent axis is more meaningful, such as when examining distributions across numeric ranges or categorical data with inherent ordering.
Describe the solution you'd like
allow users to:
Sort by independent axis (ascending/descending) Sort by dependent axis (current default behavior) Custom sort order when applicable
Use Cases:
Analyzing distributions across numeric properties (screen widths, ages, scores, etc.) Creating proper histograms where x-axis ordering is critical Examining categorical data with natural ordering (sizes: S, M, L, XL) Time-based categorical analysis (months, days of week)
Describe alternatives you've considered
Additional context
From: https://posthoghelp.zendesk.com/agent/tickets/32542
Debug info
Kind: feedback
Target area: analytics
Report event: http://go/ticketByUUID/d376f38b-e303-4e4a-ac91-9bc1f560071c
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/01976952-4c6c-789c-a4e8-7ac82831587d?t=1285
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%2201976952-4c6c-789c-a4e8-7ac82831587d%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/51876/insights/new#insight=TRENDS&q=%7B%22kind%22%3A%22InsightVizNode%22%2C%22source%22%3A%7B%22kind%22%3A%22TrendsQuery%22%2C%22series%22%3A%5B%7B%22kind%22%3A%22EventsNode%22%2C%22event%22%3A%22%24pageview%22%2C%22name%22%3A%22Pageview%22%2C%22math%22%3A%22unique_session%22%7D%5D%2C%22trendsFilter%22%3A%7B%22display%22%3A%22ActionsBarValue%22%2C%22showMultipleYAxes%22%3Afalse%2C%22aggregationAxisFormat%22%3A%22numeric%22%2C%22showValuesOnSeries%22%3Atrue%7...&
Persons-on-events mode for project: person_id_override_properties_joined