-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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(experiments): add delta timeseries chart UI #27960
Conversation
Size Change: +65 B (+0.01%) Total Size: 1.16 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
…PostHog/posthog into experiments-timeseries-chart-ui
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated2 snapshot changes in total. 0 added, 2 modified, 0 deleted:
Triggered by this commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,151 @@ | |||
import { Chart, ChartConfiguration } from 'chart.js/auto' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have a storybook for this (at some point in the future) that includes the various permutations of data (zero days, one day, 100 days)
@@ -401,6 +404,16 @@ export function DeltaChart({ | |||
}) | |||
}} | |||
onMouseLeave={() => setTooltipData(null)} | |||
onClick={() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not intuitive to me that hovering produces one UI and clicking produces another UI. Not a blocker, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, can adjust later 👍
Changes
Feature flag:
experiments-interval-timeseries
Add a chart with dummy data as preparation for #26931. The chart opens when you click on a credible interval bar.
How did you test this code?
👀