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

NL: bar chart with lots of variables is hard to read #2932

Closed
chejennifer opened this issue Jul 12, 2023 · 1 comment · Fixed by #2945
Closed

NL: bar chart with lots of variables is hard to read #2932

chejennifer opened this issue Jul 12, 2023 · 1 comment · Fixed by #2945
Labels
nl Issues dealing with the Data Commons NL interface

Comments

@chejennifer
Copy link
Contributor

in this example: https://screenshot.googleplex.com/9yrFJwF2nwWSEKs

  1. When the chart says "A compared with other variables", A doesn't appear in the legend, so it is hard to see how it compares to others.

  2. The colours shades for bars are too close to find the matching legend. Maybe add a hover tooltip?

@pradh pradh added the nl Issues dealing with the Data Commons NL interface label Jul 13, 2023
@pradh
Copy link
Contributor

pradh commented Jul 14, 2023

The attached PR addresses (1). Defer to you and @dwnoble for (2).

pradh added a commit that referenced this issue Jul 14, 2023
1. Bug in extend_svs where we don't always check SV compatibility caused
#2938

<img width="400" alt="Screenshot 2023-07-13 at 7 54 21 PM"
src="https://github.com/datacommonsorg/website/assets/4375037/7ffd67c0-ca2e-4a60-b61d-7cd71be08511">

3. Fix #2932 by limiting
the number of extended SVs we plot in a bar chart to 16, and also keep
the "main SV" pinned as the first entry so its clear.

<img width="400" alt="Screenshot 2023-07-13 at 7 52 53 PM"
src="https://github.com/datacommonsorg/website/assets/4375037/017defe3-2759-46af-8e92-6f3c373aa61c">

5. Fix #2925 by ensuring
that contained-in doesn't match substrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nl Issues dealing with the Data Commons NL interface
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants