Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
add revenue totals below charts per #1348
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Allen authored and gemfarmer committed Jun 8, 2016
1 parent 7b5e540 commit acd28ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _includes/location/section-revenue.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h2>Federal fees assessed for commodities</h2>
{% assign commodity_slug = commodity[0] | slugify %}
<section id="revenue-{{ commodity_slug }}" class="chart-item">

<h3>{{ commodity_name }}</h3>
<h3 class="chart-title">{{ commodity_name }}</h3>

<figure class="chart">
{% assign annual_revenue = commodity[1] %}
Expand All @@ -85,6 +85,10 @@ <h3>{{ commodity_name }}</h3>
x-range="{{ year_range }}"
selected="{{ year }}">
</eiti-line-chart>
<figcaption>
<span class="eiti-line-chart-x-value">{{ year }}</span>
<span class="eiti-line-chart-y-value">${{ annual_revenue[year].revenue | default: 0 | intcomma }}</span>
</figcaption>
</figure>

<h4>
Expand Down

0 comments on commit acd28ca

Please sign in to comment.