opendisclosure icon indicating copy to clipboard operation
opendisclosure copied to clipboard

dropdown to switch race for cumulative itemized campaign contributions graph

Open ianaroot opened this issue 10 years ago • 5 comments

add dropdown of various races with event binding to rerender the graph based on contribution data for that particular race.

ianaroot avatar Feb 11 '15 04:02 ianaroot

@macfarlandian, lauren told me to tag you on this issue and maybe we could collaborate

ianaroot avatar Feb 11 '15 04:02 ianaroot

yeah – i don't really know what the current implementation is, but my thought was to use the C3 chart library, which gives you most of the interactivity lauren was talking about for free: http://c3js.org/samples/timeseries.html

we'd just need to add a dropdown to load some new data

macfarlandian avatar Feb 18 '15 03:02 macfarlandian

question about payload. more than half of our users will be accessing this on mobile. so...

  • Bandwidth: Is it cheaper (in bytes) to download data and render in the browser or to pre-render on the server and download images? we can achieve similar animation through css+js as through C3.
  • Connectivity: Can we cache data in the browser for offline viewing?

evanwolf avatar Mar 09 '15 21:03 evanwolf

i'm also wondering where this particular feature fits into the grand scheme of redesigning the homepage ... if individual races are going to have their own pages that look kind of like what the mayor-only homepage currently looks like, a dropdown to switch races might not be super relevant anymore.

macfarlandian avatar Mar 11 '15 00:03 macfarlandian

Hi @macfarlandian good point on the dropdown not being as relevant now with the homepage redesign. @elinaru what do you think? since you have more of an idea of what our redesign homepage is going to look like.

lla2105 avatar Mar 11 '15 02:03 lla2105