-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2276 from fecgov/feature/update-line-chart
Update line-chart interactions
- Loading branch information
Showing
20 changed files
with
1,113 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{% macro plot(total_type) %} | ||
<div class="overview js-{{total_type}}-overview js-{{total_type}}-snapshot"> | ||
<div> | ||
<div class="grid--flex" style="align-items: center"> | ||
<div class="overview__chart-subtitle"> | ||
<p class="heading__subtitle">How much money has been {{total_type}} between:</p> | ||
</div> | ||
<div class="overview__chart-controls"> | ||
<div class="snapshot__line-controls"> | ||
<button class="button button--standard button--previous js-snapshot-prev"><span class="u-visually-hidden">Previous month</span></button> | ||
<h5><span class="js-min-date"></span> – <span class="js-max-date"></span></h5> | ||
<button class="button button--standard button--next js-snapshot-next"><span class="u-visually-hidden">next month</span></button> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<div class="overview__chart-section"> | ||
<div class="overview__chart-line js-chart"></div> | ||
</div> | ||
<div class="overview__snapshot-section"> | ||
<div class="js-snapshot"> | ||
<div class="snapshot__line-item"> | ||
<div class="snapshot__line-item-title"> | ||
<span class="swatch candidates"></span>Candidates | ||
</div> | ||
<div class="snapshot__line-item-number"> | ||
<div class="snapshot__point-padding"> | ||
<div class="point-padding"></div> | ||
</div> | ||
<span data-total-for="candidate"></span> | ||
</div> | ||
</div> | ||
<div class="snapshot__line-item"> | ||
<div class="snapshot__line-item-title"> | ||
<span class="swatch pacs"></span>PACs | ||
</div> | ||
<div class="snapshot__line-item-number"> | ||
<div class="snapshot__point-padding"> | ||
<div class="point-padding"></div> | ||
</div> | ||
<span data-total-for="pac"></span> | ||
</div> | ||
</div> | ||
<div class="snapshot__line-item"> | ||
<div class="snapshot__line-item-title"> | ||
<span class="swatch parties"></span>Party committees | ||
</div> | ||
<div class="snapshot__line-item-number"> | ||
<div class="snapshot__point-padding"> | ||
<div class="point-padding"></div> | ||
</div> | ||
<span data-total-for="party"></span> | ||
</div> | ||
</div> | ||
<div class="snapshot__line-item"> | ||
<div class="snapshot__line-item-title"> | ||
<span class="swatch"></span> | ||
All committees | ||
</div> | ||
<div class="snapshot__line-item-number"> | ||
<div class="snapshot__point-padding"> | ||
<div class="point-padding"></div> | ||
</div> | ||
<span data-total-for="all"></span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.