Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(insights): use theme colors for world map charts, retention and paths charts #27642

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

thmsobrmlr
Copy link
Contributor

@thmsobrmlr thmsobrmlr commented Jan 17, 2025

Problem

The world map, retention, histogram funnel and paths charts didn't use colors from the color theme. (This is still true for the lifecycle chart and the dropoff path in the paths chart.)

Changes

Adapts the mentioned charts to use the color theme. This also changes their default look without a theme, which I think makes them more uniform with the rest of the platform.

Here's a comparision of the previous and new default:

Before After
Screenshot 2025-01-17 at 14 44 17 Screenshot 2025-01-17 at 15 21 30
Screenshot 2025-01-17 at 14 44 30 Screenshot 2025-01-17 at 15 21 55
Screenshot 2025-01-17 at 14 44 38 Screenshot 2025-01-17 at 15 22 05
Screenshot 2025-01-17 at 14 45 10 Screenshot 2025-01-17 at 15 40 21

Here's a dashboard with a purposefully colorful theme:
export-insight-colors (1)

How did you test this code?

👀

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

11 snapshot changes in total. 0 added, 11 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@thmsobrmlr thmsobrmlr marked this pull request as ready for review January 17, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants