Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

fold charts into stats #3067

Merged
merged 8 commits into from
Jan 7, 2015
Merged

fold charts into stats #3067

merged 8 commits into from
Jan 7, 2015

Conversation

chadwhitacre
Copy link
Contributor

Fixes #2740, and starts to simplify the IA of /about/, which is necessary to further rationalize our navigation following #2938 (see #3063).

@chadwhitacre
Copy link
Contributor Author

Ready for review. This PR incorporates #3064, so you can review/merge that first if you want to.

@clone1018
Copy link
Contributor

@whit537 We have some failing tests here. After that I'll merge.

@chadwhitacre
Copy link
Contributor Author

@clone1018 Working on the last one ...

@chadwhitacre
Copy link
Contributor Author

Note that this is actually a breaking API change because it changes the sort order of charts.json. We gonna care about that?

https://github.com/gratipay/gratipay.com/#api

I'm porting the tip distribution charts to the same library we're using
for the main charts, so that I can fold the charts page into the stats
page. This is part of an overall rationalization of the information
architecture under /about/.

As part of this I'm switching to bins that make sense to humans, based
on 1s, 2s, and 5s.

The next step is to generalize gratipay/charts.js to work with a
non-temporal X axis.
@chadwhitacre
Copy link
Contributor Author

Rebased on master.

Preserves existing behavior. tip-distribution.json isn't documented API
so I think we're okay to change it.
@chadwhitacre
Copy link
Contributor Author

Okay, really ready for review now. :-)

@clone1018
Copy link
Contributor

We decided we were hesitant on merging this because there are potential users of it.

Can we rename the json endpoint for now, keeping the old one intact and then we'll get this merged in.

clone1018 added a commit that referenced this pull request Jan 7, 2015
@clone1018 clone1018 merged commit 6dc727e into master Jan 7, 2015
@clone1018 clone1018 deleted the fold-charts branch January 7, 2015 03:02
@Changaco
Copy link
Contributor

Changaco commented Jan 7, 2015

The new tip distribution charts look terrible, and I'm not convinced that writing our own code instead of using d3 is a good idea.

@clone1018
Copy link
Contributor

The code is already written though @Changaco. Also how does the chart look terrible? Is it the data or the actual design of the chart?

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

Successfully merging this pull request may close these issues.

Combine stats and charts into one page
3 participants