Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update line-chart interactions #2276

Merged
merged 9 commits into from
Sep 7, 2018
Merged

Conversation

apburnes
Copy link
Contributor

@apburnes apburnes commented Aug 10, 2018

Summary (required)

Impacted areas of the application

This effects the line-chart.js and /data landing page.

chartbig

@apburnes apburnes requested a review from JonellaCulmer August 13, 2018 11:44
@JonellaCulmer
Copy link
Contributor

@apburnes This is excellent! A huge improvement on what we had before. I just have a couple thoughts:

  • The table does not function responsively. At different break points the information on the edges disappears, whether it's the Y axis on the left or the figure totals on the right.
  • There is nothing linked to the methodology button. And, unfortunately, I'm not sure what was linked there before.

@codecov-io
Copy link

codecov-io commented Aug 14, 2018

Codecov Report

Merging #2276 into develop will decrease coverage by 0.02%.
The diff coverage is 70%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2276      +/-   ##
===========================================
- Coverage    74.37%   74.35%   -0.03%     
===========================================
  Files          111      111              
  Lines         6588     6610      +22     
  Branches       586      589       +3     
===========================================
+ Hits          4900     4915      +15     
- Misses        1688     1695       +7
Impacted Files Coverage Δ
fec/data/views.py 33.7% <0%> (-0.38%) ⬇️
fec/fec/static/js/modules/helpers.js 57.75% <33.33%> (-0.65%) ⬇️
fec/fec/static/js/modules/line-chart.js 96.37% <86.36%> (-0.84%) ⬇️
fec/fec/static/js/modules/calendar.js 91.36% <0%> (+0.71%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d1cc4f8...906a570. Read the comment docs.

@JonellaCulmer
Copy link
Contributor

JonellaCulmer commented Aug 17, 2018

Per our discussion in design sync and a followup convo, we intend to add these line charts back onto the data landing page, as well as incorporate onto the advanced data pages.

Before finalizing/merging this PR:

Mock-ups for the advanced data pages can be found here: #2199

@JonellaCulmer
Copy link
Contributor

@apburnes Here's the updated mock-up for the line charts on the Raising and spending pages:

Raising breakdown button language has changed to More raising charts.
For spending page it will say More spending charts.

Designs:
screen shot 2018-08-28 at 2 15 05 pm

@JonellaCulmer
Copy link
Contributor

JonellaCulmer commented Sep 4, 2018

Updates for line charts on advanced data pages and data landing below.

Advanced data pages

  • Add additional space between prior section and accordion to help differentiate the separate sections
  • border-bottom: 1px solid, line below chart section header
  • Update typography to Gandhi for header "Cumulative money raised by committees"
  • Update typography to Karla, and text for time toggle: "How much money has been raised between:"
  • Move "More raising/spending charts" button above dividing line
  • Indent Methodology accordion to align with other accordions on the page
  • Eliminate some of the padding between the line chart and Methodology accordion

@JonellaCulmer JonellaCulmer changed the title [TBD] Update line-chart interactions [WIP] Update line-chart interactions Sep 5, 2018
@JonellaCulmer
Copy link
Contributor

JonellaCulmer commented Sep 5, 2018

@apburnes Based on our conversation, these are the following changes:

On advanced data pages:

  • On both Raising and Spending data pages, remove extra spacing in sections with pink boxes
    screen shot 2018-09-05 at 4 27 56 pm

On data landing page:

  • Change "Raising breakdown" to "More raising charts"

  • Deactivate button to "Who's raising the most" to match other two sections (Where contributions come from and The size of contributions)
    screen shot 2018-09-05 at 4 29 21 pm

  • Change "Spending breakdown" to "More spending charts"

  • Deactivate button to "Who's spending the most" to match other two sections (What's spent on day-to-day activities and Where money is spent to support and oppose candidates)
    screen shot 2018-09-05 at 4 30 00 pm

@apburnes apburnes changed the title [WIP] Update line-chart interactions Update line-chart interactions Sep 5, 2018
@patphongs
Copy link
Member

@JonellaCulmer Do you think we should change the date format on the data landing page for the chart to be the same as on the raising and spending data pages? Right now data landing is formatted Feb 28, 2017, while the raising and spending pages are formatted 02/28/2018.

@JonellaCulmer
Copy link
Contributor

@patphongs Yes, I agree. Thanks for catching. Do you think we need a testing ticket to verify the figures one more time before merge?
@apburnes Can you make that last change? Then I'll approve because everything else looks great!

@patphongs
Copy link
Member

patphongs commented Sep 6, 2018

Do you think we need a testing ticket to verify the figures one more time before merge?

@JonellaCulmer Yes, it would be good to validate the numbers one more time just to be sure. I've made a testing ticket here and assigned it to @PaulClark2.

#2334

@patphongs
Copy link
Member

@apburnes Can you rebase from develop? It looks like there's a conflict

Copy link
Contributor

@JonellaCulmer JonellaCulmer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks really good. Approved! Thanks for all your efforts on this @apburnes!

Copy link
Member

@patphongs patphongs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me

Copy link
Contributor

@johnnyporkchops johnnyporkchops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works/looks great at all sizes!
It is also useful to now have .content__section--ruled-responsive without min-width for accordions inside tablists.

@johnnyporkchops
Copy link
Contributor

Does this need to be merged to dev for @PaulClark2 to test or should it remain un-merged until after testing?
#2334

@JonellaCulmer JonellaCulmer merged commit 8477d5d into develop Sep 7, 2018
@lbeaufort lbeaufort deleted the feature/update-line-chart branch September 13, 2018 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants