Closed kilemensi closed 5 years ago
Standard the LOCATIONNOTFOUND as LOCATION_NOT_FOUND_DIST to be used in HURUmap templates to either hide or CtA wherever there is a missing data.
LOCATIONNOTFOUND
LOCATION_NOT_FOUND_DIST
If our data distribution is called budget, then our code that hides the viz whenever data is missing:
budget
{% if not budget.is_missing %} <article class="clearfix"> <header class="section-contents"> <h1>Budget</h1> </header> <div class="section-container"> {% if not budget.government_expenditure_dist.is_missing %} <section class="clearfix stat-row"> <h2 class="header-for-columns">Government Spending</h2> <div class="column-full" id="chart-grouped_column-budget-government_expenditure_dist" data-stat-type="scaled-percentage"> </div> </section> {% endif %} </div> </article> {% endif %}
Description
Standard the
LOCATIONNOTFOUND
asLOCATION_NOT_FOUND_DIST
to be used in HURUmap templates to either hide or CtA wherever there is a missing data.Type of change
Code
If our data distribution is called
budget
, then our code that hides the viz whenever data is missing:Checklist: