Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Refine bar charts #1556

Closed
ericronne opened this issue Jul 1, 2016 · 9 comments
Closed

Refine bar charts #1556

ericronne opened this issue Jul 1, 2016 · 9 comments

Comments

@ericronne
Copy link
Contributor

ericronne commented Jul 1, 2016

No description provided.

@ericronne
Copy link
Contributor Author

ericronne commented Jul 1, 2016

from #1548 ...

@shawnbot @meiqimichelle @coreycaitlin, i think it might be best to make all of the bars the same width, and allot space for ten of them. This will make for an easier page scan, say if the user wants to visually compare all of the 2010 numbers. Here's how it could look, discuss! (Sample topic: hairline along the bottom necessary?) ...

image

@ericronne
Copy link
Contributor Author

Here's what interaction might look like. Test? Try different design?? @meiqimichelle

Option A
Visually distinguish the "zero" year labels (light gray) from the "no data" year labels...
image

Option B
Treat all non-selected year labels identically. Hover over years (or click) to see whether a given year has no data is a zero.
image

@ericronne
Copy link
Contributor Author

Will do an envision prototype to test...

@ericronne
Copy link
Contributor Author

ericronne commented Jul 6, 2016

Proposed visual and interaction design ...

Note: When you mouse off of a year after clicking it, the other charts will not change (this would be really difficult to prototype correctly!)

bar-interactions-sentences-coming-no-worries

And with sentences (not animated)
image

Thought: i think it might good to update the summary sentences only on click, rather than mouseover. Otherwise it might be jarring. Agree?

@ericronne
Copy link
Contributor Author

Here's how it looks with sentences changing on hover. I think i'll test this. LMK if you would like to as well, it requires the flinto app :/

bar-interactions-w-sentences

@coreycaitlin
Copy link
Contributor

<3 this, and agree that the sentences should probably only change on click.

@ericronne
Copy link
Contributor Author

As a result of feedback from armchair usability testing sessions, i've updated the design. Will fold these into the upcoming selector prototype (issue #1582), but probably safe to get this styling into the implementation queue, @gemfarmer 👍
image

Sketch file

@ericronne
Copy link
Contributor Author

Made a slight tweak based on your comment re emphasizing the numbers, @gemfarmer ...
image

Sketch file

@shawnbot
Copy link
Contributor

@gemfarmer: I just cleaned up the year ranges on all of the state and national pages in #1592, so they're all set with {% assign %} and the bar charts get x-range="{{ year_range }}" instead of data-x-range (which was my way of disabling that feature). The one thing to be aware of here is that year_range is a "global" variable in the liquid templates, so there could be some cases in which we're not setting it in one include and its previously set value is being used anyway. We might want to namespace these, or move the year ranges into a data file so that they can just be used as-is by the individual templates, for instance:

x-range="{{ site.data.year_ranges.federal_production | jsonify }}"

@ericronne what this means for you is that the bar charts should all be at least internally consistent on a section-by-section basis, e.g. with Geothermal Sulfur in California.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants