Feature Request: Add logarithmic scale and customizable color palettes for world map chart visualization
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.9k
- Forks
- 3.4k
- Avg merge
- 7h 27m
- Merged PRs (30d)
- 222
Description
Feature request
Is your feature request related to a problem?
Currently, the world map chart visualization uses a linear scale with a fixed blue gradient. When data has extreme outliers, it becomes very difficult to distinguish between countries with moderate differences, as they all appear as nearly the same shade of blue. This makes the visualization less useful for analysis when data ranges are large.
Describe the solution you'd like
Add two enhancements to the world map chart:
Logarithmic scale option: Allow users to toggle between linear and logarithmic scales for the color intensity mapping. This would help visualize data with extreme outliers by compressing the range and making moderate differences more visible.
Customizable color palettes: Provide options for different color schemes beyond the default blue gradient, such as:
Heatmap-style gradients (red → yellow → green)
Diverging color schemes
Other sequential palettes that provide better contrast
These options could be added to the chart configuration panel, similar to how other chart types have customization options.
Describe alternatives you've considered
Additional context
From: https://posthoghelp.zendesk.com/agent/tickets/39295 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/41684)
Debug info
Kind: feedback
Target area: analytics
Report event: http://go/ticketByUUID/c55c1683-7384-4953-b212-1fb9a1a1f22f
Session: https://us.posthog.com/project/sTMFPsFhdP1Ssg/replay/0199aec9-4272-72cc-8884-dd4f4d2b3543?t=29336
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%220199aec9-4272-72cc-8884-dd4f4d2b3543%22%5D%2C%22operator%22%3A%22exact%22%2C%22type%22%3A%22event%22%7D%5D%7D%5D%7D
Location: https://eu.posthog.com/project/49681/insights/3Ri80Asz
Persons-on-events mode for project: person_id_override_properties_on_events
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
Begin by locating the world map chart visualization and its chart configuration panel in the analytics frontend. Review how the current linear blue color mapping is configured, then define the scope for a linear/logarithmic toggle and selectable sequential or diverging palettes. Done means both enhancements are available in the chart configuration and improve readability for data with extreme outliers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- analytics, data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100