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

Improvements to legend table #4492

Closed
5 tasks
paolodamico opened this issue May 26, 2021 · 5 comments · Fixed by #4700
Closed
5 tasks

Improvements to legend table #4492

paolodamico opened this issue May 26, 2021 · 5 comments · Fixed by #4700
Assignees
Labels
enhancement New feature or request

Comments

@paolodamico
Copy link
Contributor

paolodamico commented May 26, 2021

This issue documents improvements to the legend table. The table becomes particularly more relevant with #4484.

  • Smart row names. We now show only the relevant series name or breakdown value.
  • Always display series identifier (letter ID) when there's more than one series.
  • Group displayed breakdown values. When the graph has multiple series and a breakdown, we clearly separate each one.
  • Add total/average/median column. We need to be careful when using in combination with "Unique users" as when you have a total column with unique users you might expect the total number of uniques as opposed to the simple sum of all interval uniques.
  • Allow naming series.

Mockups can be found on Figma. Please be sure to check the comments section for a few clarifications.

Default. Single series (with breakdown).

insights-base

Multiple series.

multiple-series

Multiple series with breakdown.

  1. Note we no longer show the color of the series in the letter identifying each series. This is because there's a breakdown applied and the graph will show multiple lines.

multiple-series-breakdown

Custom name on series

  1. We may want to make this a premium feature, it's goal is collaboration. It'll make it a lot easier to share standalone insights with other teammates.

named-series

named-series-expanded

@paolodamico paolodamico added enhancement New feature or request core-experience labels May 26, 2021
@paolodamico
Copy link
Contributor Author

Please see updated description now with full mockups. This will also help with the way we display information in tooltips. I'll get to work on that next. @samwinslow.

@corywatilo would love some feedback here.

@samwinslow
Copy link
Contributor

See #4156 (comment) for an update on how implementation of these changes is going. It seemed so closely related to tooltips that I started work on it there.

@liyiy
Copy link
Contributor

liyiy commented Jun 4, 2021

My original concern with the legend came from the lifecycle toggles because since there's only four "values" to it (new, resurrecting, returning, dormant), I thought it was overkill to convert it to how we do legend/breakdowns for the other charts and to hide those 4 static values below the graph.

So I agree that we should still show breakdown for the toggles below the chart but maybe we can also keep them as filters where they are now?

Screen Shot 2021-06-03 at 8 30 28 PM

I think that point led me to wondering about legends in general though, usually I would expect a chart legend to be more prominent/visible at first glance, like on the bottom or to the side of the graph, without having the user scroll up and down or hover over the graph in order to see what's what.

Screen Shot 2021-06-03 at 8 43 36 PM

Something like this could be a great future addition? 😁

Screen Shot 2021-06-03 at 8 44 52 PM

They also do something like this to "show more", I don't really have strong opinions on that

As to the mocks I think the matching colors/symbols in the query selection is a great idea 📗

@paolodamico
Copy link
Contributor Author

Thanks for that context @liyiy! My thoughts,

  1. Definitely agree on the usefulness of having a separate legend key inlined within the graph (we've discussed this a bit already). Let's keep this in a separate conversation (Legend key in chart #4594). Will see with @corywatilo tomorrow if we can prioritize this too for this sprint.
  2. I think it's valuable to have the lifecycle filters at the bottom in the graph legend because it will also display the number of users in each category for each time period in a straightforward way. It's also quite useful for screnshots. In addition, it's more consistent and uses less vertical space at the top which is scarce to be able to display the graph above the fold. Particularly considering 1. Thoughts?

@liyiy
Copy link
Contributor

liyiy commented Jun 4, 2021

@paolodamico that makes sense, it does look like it's taking up a lot of the top space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants