cfpb / design-manual

⚠️ THIS REPO IS DEPRECATED ⚠️ A set of design principles and standards for the Consumer Financial Protection Bureau.
https://cfpb.github.io/design-manual/
Creative Commons Zero v1.0 Universal
98 stars 71 forks source link

[DATA VIZ] standards #230

Closed stephanieosan closed 7 years ago

stephanieosan commented 10 years ago

Here are screenshots from the excel file. Also emailing the team the document. @mebates Did you have concerns about any of the principles outlined, or just the recommended color palette?

screen shot 2014-06-26 at 5 52 27 pm screen shot 2014-06-26 at 5 52 48 pm screen shot 2014-06-26 at 5 52 58 pm screen shot 2014-06-26 at 5 53 05 pm screen shot 2014-06-26 at 5 54 57 pm screen shot 2014-06-26 at 5 55 06 pm screen shot 2014-06-26 at 5 55 10 pm

mebates commented 10 years ago

Thanks Stephanie. My issue is only with the palette, and mainly with the pie chart. (The thoughts below also apply to the bar chart with Green and Teal at 100%) I came upon them when I was working on the CR Snapshot graphs this last time around.

Excel palette: screen shot 2014-06-27 at 3 37 56 pm

CMYK palette, matching Excel (appears so much darker): screen shot 2014-06-27 at 3 38 42 pm

Alternative palette (just a starting point): screen shot 2014-06-27 at 3 41 24 pm

stephanieosan commented 10 years ago

During the crit today, we talked about high-level goals for the revised color palette:

To follow up on:

mebates commented 10 years ago

Working on the complaint graphs again. How about this scheme? It pulls in some lighter shades of Pacific before going to the brown.

screen shot 2014-07-11 at 2 18 05 pm

screen shot 2014-07-11 at 2 21 25 pm

elizbond commented 10 years ago

How would this work for line graphs so there is enough contrast between lines if printed in black and white?

Dnpizarro commented 10 years ago

@stephanieosan and @mebates, has there been any testing on the following, as stated above:

Also, to follow up on @elizbond question, any idea on how this would work with line graphs?

elizbond commented 10 years ago

When the Teal 50 is next to the CFPB green, there's not enough contrast in grayscale.

elizbond commented 10 years ago

Recent questions about histograms from the data team.

"We were recently asked about whether there was any guidance on how many bins should be shown in a histogram. Does anyone on your team know of any research about this? We found something about optimizing bin size but not # of bins. If we need to, we can just try out different bin sizes during our larger regroup."

After asking Twitter, this is what they found.

"The bin sizes really depend on the data. With that being said you would have to experiment and play with different bin sizes to determine what the best size is. If bins are too big you could miss trends vice versa."

Do we have any recommendations or preferences?

amycesal commented 9 years ago

Pulling up this issue again.

I'd like to see if we can take a holistic look at the data visualizations CFPB creates and hopefully include some standards and guidelines in the design manual. It would be super awesome if we could do some user testing too.

I lead the creation of a data visualization style guide for the Sunlight Foundation, which might be a good start. It's probably more informal in tone than we would want, but I think having suggestions on what type of graph is appropriate is useful. http://sunlightfoundation.com/blog/2014/03/12/datavizguide/

elizbond commented 9 years ago

+1 @amycesal when things settle down post-immersion I'll work with you to gather examples I've seen go out the door. We can loop in Erin Simpler from the data team too!

amycesal commented 9 years ago

Basically, I just want to start by compiling a list of stuff we've done. That way, we can look at trends, what's working, what isn't and start to make some decisions about standards going forward. This is my "crazy call for examples".

Maps

HMDA http://www.consumerfinance.gov/hmda/ screen shot 2015-06-02 at 4 18 38 pm

Bar Graphs

HMDA http://www.consumerfinance.gov/hmda/ screen shot 2015-06-02 at 4 22 20 pm

Owning a Home http://www.consumerfinance.gov/owning-a-home/check-rates/ screen shot 2015-06-02 at 4 25 12 pm

Excel Templates/reports screen shot 2015-06-02 at 4 35 42 pm

Consumer Response 1 pager http://files.consumerfinance.gov/f/201503_cfpb_complaints-by-the-numbers.pdf screen shot 2015-06-02 at 4 45 10 pm

What else have we done @exafox @tanderegg @stephanieosan @ohsk @designlanguage @mebates ?

stephanieosan commented 9 years ago

What about Tableau visualizations? @elizbond

exafox commented 9 years ago

Yes @stephanieosan, at least the complaint topline reports should be under consideration. (There a number of other Tableau dashboards as well.)

Also the Mortgage Chartbook would be something worth studying, as a lot of work that goes into it and it is pretty sharp.

Send me an old fashioned email and we can see about getting you folks copies?

elizbond commented 9 years ago

I decided to go through some of the data-heavy reports and pull out any custom charts we did (i.e., outside of the excel template). Examples with the source material are below.

Consumer credit reports: A study of medical and non-medical collections

Report

screen shot 2015-07-02 at 11 05 28 am

screen shot 2015-07-02 at 11 05 38 am

One color line graphs screen shot 2015-07-02 at 11 05 49 am

screen shot 2015-07-02 at 11 06 11 am

Arbitration

Report

screen shot 2015-07-02 at 11 12 57 am

screen shot 2015-07-02 at 11 14 13 am

screen shot 2015-07-02 at 11 17 45 am

screen shot 2015-07-02 at 11 18 43 am

Strategic plan

Report

screen shot 2015-07-02 at 11 26 36 am

Card Act

Report

screen shot 2015-07-02 at 11 29 00 am

screen shot 2015-07-02 at 11 29 07 am

screen shot 2015-07-02 at 11 29 16 am

screen shot 2015-07-02 at 11 29 26 am

Waterfall screen shot 2015-07-02 at 11 29 53 am

Manufactured Housing White Paper

Report

screen shot 2015-07-02 at 11 32 15 am

amycesal commented 8 years ago

This is a good set of examples to start with! If there's more, that would be great too. I'm planning a brainstorm in DC for Feb 18th to look at examples of what we've done, and to plan where we want to go with this.

Recently there was a post (http://policyviz.com/style-guides) about other data visualization style guidelines that exist. Most relevant to us are probably:

I'd like to go through those and talk about what they do well, and what sorts of guidelines could be applicable to what we are trying to create.

There's also the question of scope, and when people should use the guide. I think it's unrealistic for every graph to fit standards because there's a lot of exploratory process that needs to happen when digging through data. My thoughts right now as a flowchart: screen shot 2016-02-04 at 4 39 17 pm

Anyways, this is moving! And hopefully scope and steps will be more defined soon.

amycesal commented 8 years ago

Note: a lot of our data comes in ALL CAPS. We should address this and decide what use and how much ALL CAPS is appropriate (hint: less than all).

good source to look at for text alignment and why: http://www.storytellingwithdata.com/blog/2012/09/quick-tip-left-uppermost-align-title

mebates commented 8 years ago

@amycesal love your flow chart, makes perfect sense.

I think it's less important for us to have really aggressive and specific type and style standards for data viz than it is for an editorial publication. I'm most attracted to the checklist and gov.uk's standards. I wonder if we should start by forking gov.uk and just modifying slightly from there. Might speed things up and get us to an MVP very quickly.

amycesal commented 8 years ago

Yesterday @designlanguage @marteki @Ekellett Cesar Brittany and I met to brainstorm.

We reviewed other data guidelines and ways to help creators figure out what chart type would be best. There was some dot voting as to what worked well, and could apply to us, and what didn't.

image2 image1 3

We looked at a wall of charts made all over the bureau that was overwhelmingly green to get a sample of what is being created now, what was working well, and what could be improved.

Then we brainstormed where we want to be and how we get there

image4 image3

with the creation of a guide being the first step.

Based on our review of other guides and what we want to include, I created a draft outline of a guide.

Draft outline

Help/Contact info
Intro and usage guidelines.
Anatomy of a chart.
flowchart of chart suggestions.
Color.
Text.
Arrangement.
Emphasis.
accessibility.
data integrity
further resources
amycesal commented 8 years ago

Natalia brought up a good point about data integrity and things adding up to 100% that should probably also be addressed in these guidelines. I added it to the draft outline above.

Once guidelines are established, we can create templates. Useful templates would probably include

Templates to create

social sharing ideas

Next steps include:

amycesal commented 8 years ago

First up: bar charts! https://github.com/cfpb/design-manual/issues/401

amycesal commented 8 years ago

Next up: Line charts! https://github.com/cfpb/design-manual/issues/403

amycesal commented 8 years ago

passing the ball to @designlanguage to sort out typographic hierarchy for print, web, and social.

starting to figure out the parts of a chart and how to call out what's important. parts-of-a-chart_01

designlanguage commented 8 years ago

Here are some do-nots and ideas for recommendations. More to come.

parts-of-a-chart_03gk

@amycesal

amycesal commented 8 years ago

Issue about color: #405

stephanieosan commented 7 years ago

Amy took data viz standards on as a whole different project. I'm closing this issue!

benguhin commented 7 years ago

@amycesal @stephanieosan I'd love to see where y'alls have landed on this! Could be helpful to fork for our teams in Austin

amycesal commented 7 years ago

@benguhin this is where we landed: https://cfpb.github.io/design-manual/data-visualization/data-visualization.html