Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Tooltip / legend for state contribution map #331

Closed
jmcarp opened this issue Jul 14, 2015 · 17 comments
Closed

Tooltip / legend for state contribution map #331

jmcarp opened this issue Jul 14, 2015 · 17 comments

Comments

@jmcarp
Copy link
Contributor

jmcarp commented Jul 14, 2015

I added a very basic tooltip to the state contribution map. It shows total contributions for the state on hover (sorry, the mouse didn't show up in the screenshot):
screen shot 2015-07-14 at 3 12 13 pm
I think we could either make the tooltip nicer, or use a legend or sidebar instead, so that clicking or hovering on a state brings up detailed information (state name, total contributions, link to data table) on the right.

Preferences @noahmanger @jenniferthibault?

@noahmanger
Copy link
Contributor

Yep, there should definitely be a legend that shows the the ranges for each
shade, and I like everything you mentioned for including in the tooltip.

On Tue, Jul 14, 2015 at 12:15 PM, Joshua Carp notifications@github.com
wrote:

I added a very basic tooltip to the state contribution map. It shows total
contributions for the state on hover (sorry, the mouse didn't show up in
the screenshot):
[image: screen shot 2015-07-14 at 3 12 13 pm]
https://cloud.githubusercontent.com/assets/1633460/8682428/edcf2374-2a3a-11e5-8230-07b033513e27.png
I think we could either make the tooltip nicer, or use a legend or sidebar
instead, so that clicking or hovering on a state brings up detailed
information (state name, total contributions, link to data table) on the
right.

Preferences @noahmanger https://github.com/noahmanger @jenniferthibault
https://github.com/jenniferthibault?


Reply to this email directly or view it on GitHub
#331.

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

@jmcarp
Copy link
Contributor Author

jmcarp commented Jul 14, 2015

So that's actually a third option. I was thinking of a sidebar, so that you'd click "MI", and then see a detail view on a separate panel to the right of the map. Tooltips are fine, but it can be annoying to include things like links in them, since it's easy for the state to lose focus and the tooltip.

@noahmanger
Copy link
Contributor

Oh! I misunderstood. You're right, I think best not to rely on the toolips.
What about a hybrid where you can toggle between this map and a regular
table that includes State name, Amount raised, and a link to the
transactions? I can sketch it out if that would help.

On Tue, Jul 14, 2015 at 12:54 PM, Joshua Carp notifications@github.com
wrote:

So that's actually a third option. I was thinking of a sidebar, so that
you'd click "MI", and then see a detail view on a separate panel to the
right of the map. Tooltips are fine, but it can be annoying to include
things like links in them, since it's easy for the state to lose focus and
the tooltip.


Reply to this email directly or view it on GitHub
#331 (comment)
.

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

@noahmanger
Copy link
Contributor

But I do think that the map should have a legend that explains what the
colors mean.

On Tue, Jul 14, 2015 at 1:11 PM, Noah Manger - XFB noah.manger@gsa.gov
wrote:

Oh! I misunderstood. You're right, I think best not to rely on the
toolips. What about a hybrid where you can toggle between this map and a
regular table that includes State name, Amount raised, and a link to the
transactions? I can sketch it out if that would help.

On Tue, Jul 14, 2015 at 12:54 PM, Joshua Carp notifications@github.com
wrote:

So that's actually a third option. I was thinking of a sidebar, so that
you'd click "MI", and then see a detail view on a separate panel to the
right of the map. Tooltips are fine, but it can be annoying to include
things like links in them, since it's easy for the state to lose focus and
the tooltip.


Reply to this email directly or view it on GitHub
#331 (comment)
.

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

Noah Manger
18F http://18f.gsa.gov | Work: 415-696-6146

@jmcarp
Copy link
Contributor Author

jmcarp commented Jul 15, 2015

Not sure about togging between a map and a table. If I'm looking at the map and decide that I'm interested in details about Kansas, I have to understand that the information I'm looking for lives behind the toggle, click the toggle, and page or scroll down the table until I find Kansas. I think I'd rather just click on the state that I want to know more about.

@noahmanger
Copy link
Contributor

True. Yeah, I guess I'm thinking there's a need for both a table view as well as a map view, presenting (ideally) the same information on both. Whether those live along side each other or with some sort of toggle, I don't know. There's a very similar need on the election page, so @jenniferthibault we should try to put our heads together on this today (if you've got time).

@jenniferthibault
Copy link
Contributor

@jmcarp Here's a quick screen shot of what this could be in "open" state , adapted from what I've been working on for the Elections page. Since the data is broken down into zip codes, I think a more traditional chloropleth is a better representation than the hexagons. This double-panel view is becoming a pattern for detailed views of table elements.

screen shot 2015-07-15 at 4 27 05 pm

@jmcarp
Copy link
Contributor Author

jmcarp commented Jul 15, 2015

  • Not sure of the relevance of zip codes--that's not what we're showing in these aggregates. Do you want to show contributions by zip code instead of state here?
  • Is the idea that we start with the data table and add the map as a second panel when the user clicks a row in the table? Can users see a country-level map at any point, or just the zoomed-in view in the example?
  • I don't mean to be obtuse, but I'm still not seeing the purpose of showing two representations of the same data side by side. What's the added value of the zoomed-in map overlay? In this example, the map overlay basically tells the user where California is.
  • The implementation of a side panel here will probably borrow from the implementation of same for other data tables. @msecret are you working on that? Anything I can help with?

@noahmanger
Copy link
Contributor

I can speak to some of these:

So we were talking on the election page about wanting to show zip-code totals, but only on the map. The idea is that for smaller races, where more funding is drawn from fewer states, where from within that state the money comes matters. This is definitely something that's better shown with a map rather than a table of zip codes.

After talking with Jen and others, I think that it makes sense to actually show the zip code totals on the committee page as well. Sorry that this goes contra the original hex map.

And so in this case, clicking on a state pulls up a zip code choropleth, so yeah, it would actually be showing granular data that this example doesn't (that was on old mock of mine).

And yes, there would also be a full country-level view. The advantage of showing it as a table is that you can easily see which states were the source of the most money, a comparison that isn't possible with a map alone that shows ranges.

And yep, it definitely makes sense to have this side panel be the same as it is for other data tables.

@LindsayYoung
Copy link
Contributor

I feel like zip code and state should be the same map By default it should be by state, and then, when you zoom in, it would show break down by zip code.

@noahmanger
Copy link
Contributor

+1. That's what I was trying to say, but put much better :)

@jmcarp
Copy link
Contributor Author

jmcarp commented Jul 15, 2015

Thanks for clarifying.

Maps by zip code are more challenging than state-level maps, since we're working with much more data (45k data points vs 53). I'll do some evaluation and figure out what's feasible.

@noahmanger
Copy link
Contributor

To be clear, without selecting a state it simply shows the full country map. If we are at this scale, I think it woudl be ok to just show state totals. And then selecting a state shows zip totals just for that state. Does that simplify things?

@jenniferthibault
Copy link
Contributor

Sorry for lack of clarity! I'm working on some additional screens that should help us all clear some more things up, but....

that doesn't quite make sense to me though, because:

  1. the map is only activated when you select a state for more details (in my understanding)
  2. how would you be able to use the same color scale for both zip codes and states? I'm imagining the amounts would be way different

@LindsayYoung
Copy link
Contributor

I for the zipcodes, I am thinking we would only show one state at a time, or limit the amount of zipcodes shown at any one time.

I I have seen a demo with fusion tables. I hope there are some good open source tools but maybe I am thinking of things that mapbox or other experts make.

Should we see if there are people at 18F with mapping experience?

@jenniferthibault
Copy link
Contributor

Here's the summary of tonight's discussion that left it at a state-level view instead of zip code-level.
Are we interested in doing a full-switch to table view/map view, like in #297 ? Definitely possible here.

I hope I haven't left too much to imagination. Please ping me if so @jmcarp !

screen shot 2015-07-15 at 9 11 57 pm

@leahbannon
Copy link

No longer relevant to current style of maps

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

5 participants