-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated page and styles. Added a bar chart.
- Loading branch information
Showing
28 changed files
with
500 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
<h4 id="chartTitle">{{ chartTitle }}</h4> | ||
|
||
<figure class="bar-chart-from-list" role="figure" aria-labelledby="chartTitle"> | ||
<figcaption class="usa-sr-only">{{- chartDescription -}}</figcaption> | ||
|
||
<ul class="bar-chart__legend"> | ||
{%- for item in chartLegend -%} | ||
<li class="font-sans-xs"> | ||
<span class="bar-chart__legend__swatch bg--{{- item[0] }}"></span> | ||
{{- item[1].label -}} | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
|
||
<ul class="bar-chart--vertical"> | ||
<li class="y-axis" aria-hidden="true"> | ||
{%- capture chartTicksString -%} | ||
0,2,4,6,8,10,12,{{ chartYMax }} | ||
{%- endcapture -%} | ||
{%- assign chartTicks = chartTicksString | split: ',' -%} | ||
{%- for tick in chartTicks -%} | ||
<span class="y-tick">{{- tick | round -}}</span> | ||
{%- endfor -%} | ||
</li> | ||
{%- for fy in chartData -%} | ||
<li class="fy" aria-describedby="{{- fy.name -}}_label"> | ||
<h5 class="fy__wrapper-label font-sans-sm" id="{{- fy.name -}}_label"> | ||
{{- fy.name -}} | ||
</h5> | ||
<ul class="fy__wrapper"> | ||
<li class="bar-container"> | ||
<span class="bar bg--arabic_language" | ||
data-value="{{ fy.arabic_language }}" aria-hidden="true" | ||
style="height: {{ fy.arabic_language | divided_by: chartYMax | times: 100 -}}%"></span> | ||
<span class="usa-sr-only">{{ fy.arabic_language }} {{ chartLegend.arabic_language.label }}</span> | ||
</li> | ||
<li class="bar-container"> | ||
<span class="bar bg--mandarin_language" | ||
data-value="{{ fy.mandarin_language }}" aria-hidden="true" | ||
style="height: {{ fy.mandarin_language | divided_by: chartYMax | times: 100 -}}%"></span> | ||
<span class="usa-sr-only">{{ fy.mandarin_language }} {{ chartLegend.mandarin_language.label }}</span> | ||
</li> | ||
<li class="bar-container"> | ||
<span class="bar bg--spanish_language" | ||
data-value="{{ fy.spanish_language }}" aria-hidden="true" | ||
style="height: {{ fy.spanish_language | divided_by: chartYMax | times: 100 -}}%"></span> | ||
<span class="usa-sr-only">{{ fy.spanish_language }} {{ chartLegend.spanish_language.label }}</span> | ||
</li> | ||
</ul> | ||
</li> | ||
{%- endfor -%} | ||
</ul> | ||
</figure> | ||
|
||
|
||
<style> | ||
/* | ||
or inline, style="background: {{- item[1].color -}}" for legend | ||
and style="background: {{- chartLegend.arabic_language.color -}}" for chart itself | ||
*/ | ||
|
||
{% for item in chartLegend %} | ||
.bg--{{- item[0] }} { | ||
background: {{ item[1].color }} | ||
} | ||
{% endfor %} | ||
</style> |
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
Binary file not shown.
Binary file added
BIN
+25.6 KB
_includes/theme/images/ila-findings/infographic-arabic-participants-large.webp
Binary file not shown.
Binary file added
BIN
+16 KB
_includes/theme/images/ila-findings/infographic-arabic-participants-small.webp
Binary file not shown.
Binary file added
BIN
+34.3 KB
_includes/theme/images/ila-findings/infographic-mandarin-participants-large.webp
Binary file not shown.
Binary file added
BIN
+21.6 KB
_includes/theme/images/ila-findings/infographic-mandarin-participants-small.webp
Binary file not shown.
Binary file added
BIN
+27.2 KB
_includes/theme/images/ila-findings/infographic-spanish-participants-large.webp
Binary file not shown.
Binary file added
BIN
+16.9 KB
_includes/theme/images/ila-findings/infographic-spanish-participants-small.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.5 KB
_includes/theme/images/ila-findings/mobile-wireframe-translate-button.webp
Binary file not shown.
Binary file added
BIN
+35.8 KB
_includes/theme/images/ila-findings/video-preview-screenshot-small.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+39.7 KB
_includes/theme/images/ila-findings/wireframe-arabic-modal-small.webp
Binary file not shown.
Binary file added
BIN
+129 KB
_includes/theme/images/ila-findings/wireframe-mandarin-modal-large.webp
Binary file not shown.
Binary file added
BIN
+33.9 KB
_includes/theme/images/ila-findings/wireframe-mandarin-modal-small.webp
Binary file not shown.
Binary file added
BIN
+133 KB
_includes/theme/images/ila-findings/wireframe-spanish-modal-large.webp
Binary file not shown.
Binary file added
BIN
+34.7 KB
_includes/theme/images/ila-findings/wireframe-spanish-modal-small.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.