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): Support comparison to previous period in Bold Number #11225
Conversation
Now that I think about it, color coding "up" and "down" may not be the best idea. For instance, if we did a "Churned customers this week" insight, the lower the better. Removed the green and red. |
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.
Hmm, this is intentional – I don't have a good idea of a better thing to present when the previous period's value is zero and the current one is non-zero. Infinity seems pretty logical in this case. |
I'd have expected no comparison, or a note none is possible. Maybe one to check with @clarkus but no need to block |
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.
We should remove the success color options from the rate of change. As an example, if the value being described is a churn metric or something that improves as it is reduced, then we shouldn't indicate that a negative case. We can't be sure that the status colors will always be applied in a clear way, so I'd recommend removing them and instead go with an unbiased neutral color.
Are we comparing a zero value in the previous range or a null value? If there is data for that range and the values are 0, then showing the actual rate of change with a numerical value is good. If there is no data (say the event didn't exist in that time frame) then no comparison is really available. In either case, the infinity symbol is pretty confusing - not sure how it'd be interpreted by users. |
Yes, sorry I've not updated the screenshots, but that's exactly what I meant in my previous comment too:
This would be a useful distinction to be made by our API, but unfortunately the result of there being no events and e.g the result of an aggregation on some property are both 0. Mathematically, "Up ∞%" seems like an appropriate result. |
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.
🦺
I think all feedback should be addressed now, so I'll merge while you're off Chris, but of course let me know if there's anything else. |
Changes
Follow-up to #11188 adding support for "Compare to previous time period" to the Number display type. Brings the feature fully in line with #6172 (comment).
Query editor
Dashboard