From 886d44bc9becde08fa80de2dd74fd81d82947626 Mon Sep 17 00:00:00 2001 From: Giles Dring Date: Mon, 23 Oct 2023 23:53:49 +0100 Subject: [PATCH] Replace
tags in tooltips with newlines --- .../_data/visualisation/all_category_barchart.yml | 6 +++--- .../cpi/_data/visualisation/cpi_summary_barchart.yml | 6 +++--- .../cpi/_data/visualisation/time_series.yml | 12 ++++++------ .../_data/visualisation/young_people_barchart.yml | 6 +++--- .../visualisation/long_term_unemployment_3_years.yml | 4 ++-- .../long_term_unemployment_3_years_minimal.yml | 4 ++-- .../visualisation/long_term_unemployment_all.yml | 4 ++-- .../long_term_unemployment_all_minimal.yml | 4 ++-- .../neet/_data/visualisation/all_young_men.yml | 6 +++--- .../neet/_data/visualisation/all_young_people.yml | 6 +++--- .../neet/_data/visualisation/all_young_women.yml | 6 +++--- .../_data/visualisation/growth_key_youth_sectors.yml | 4 ++-- .../visualisation/growth_wanted_youth_sectors.yml | 4 ++-- .../visualisation/quarterly_growth_all_sectors.yml | 4 ++-- src/dashboard/vacancies/_data/visualisations.yml | 4 ++-- 15 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/dashboard/cpi/_data/visualisation/all_category_barchart.yml b/src/dashboard/cpi/_data/visualisation/all_category_barchart.yml index 3bdaf6a7..71002dc6 100644 --- a/src/dashboard/cpi/_data/visualisation/all_category_barchart.yml +++ b/src/dashboard/cpi/_data/visualisation/all_category_barchart.yml @@ -23,11 +23,11 @@ config: category: sector columns: - name: monthly - template: '{{sector}}
monthly change: {{ monthly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nmonthly change: {{ monthly_pct_change | toFixed(1)}}%' - name: quarterly - template: '{{sector}}
quarterly change: {{ quarterly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nquarterly change: {{ quarterly_pct_change | toFixed(1)}}%' - name: yearly - template: '{{sector}}
yearly change: {{ yearly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nyearly change: {{ yearly_pct_change | toFixed(1)}}%' file: /data/cpi/cpi_all_category_bar_chart.csv legend: position: top right diff --git a/src/dashboard/cpi/_data/visualisation/cpi_summary_barchart.yml b/src/dashboard/cpi/_data/visualisation/cpi_summary_barchart.yml index cc95c875..66277595 100644 --- a/src/dashboard/cpi/_data/visualisation/cpi_summary_barchart.yml +++ b/src/dashboard/cpi/_data/visualisation/cpi_summary_barchart.yml @@ -33,11 +33,11 @@ config: category: sector columns: - name: monthly - template: '{{sector}}
monthly change: {{ monthly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nmonthly change: {{ monthly_pct_change | toFixed(1)}}%' - name: quarterly - template: '{{sector}}
quarterly change: {{ quarterly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nquarterly change: {{ quarterly_pct_change | toFixed(1)}}%' - name: yearly - template: '{{sector}}
yearly change: {{ yearly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nyearly change: {{ yearly_pct_change | toFixed(1)}}%' file: /data/cpi/cpi_summary_barchart.csv id: cpi_summary legend: diff --git a/src/dashboard/cpi/_data/visualisation/time_series.yml b/src/dashboard/cpi/_data/visualisation/time_series.yml index 6dac154d..1349fc99 100644 --- a/src/dashboard/cpi/_data/visualisation/time_series.yml +++ b/src/dashboard/cpi/_data/visualisation/time_series.yml @@ -31,19 +31,19 @@ config: - name: x_tick_labels template: "{{ date_axis_label }}" - name: all_categories - template: "{{ named_date }}
All Categories: {{cpi_index_00_all_items_2015_100}}" + template: "{{ named_date }}\\nAll Categories: {{cpi_index_00_all_items_2015_100}}" - name: youth_average - template: "{{ named_date }}
All Categories: {{Youth-focused average}}" + template: "{{ named_date }}\\nAll Categories: {{Youth-focused average}}" - name: food_and_non_alcoholic_beverages - template: "{{ named_date }}
Food & non-alcoholic beverages: {{cpi_index_01_food_and_non_alcoholic_beverages_2015_100}}" + template: "{{ named_date }}\\nFood & non-alcoholic beverages: {{cpi_index_01_food_and_non_alcoholic_beverages_2015_100}}" - name: transport - template: "{{ named_date }}
Clothing & footwear: {{cpi_index_07_transport_2015_100}}" + template: "{{ named_date }}\\nClothing & footwear: {{cpi_index_07_transport_2015_100}}" - name: housing_energy template: - "{{ named_date }}
Housing, water, electricity, gas & other fuels: + "{{ named_date }}\\nHousing, water, electricity, gas & other fuels: {{cpi_index_04_housing_water_and_fuels_2015_100}}" - name: recreation_and_culture - template: "{{ named_date }}
Recreation & culture: {{cpi_index_09_recreation_&_culture_2015_100}}" + template: "{{ named_date }}\\nRecreation & culture: {{cpi_index_09_recreation_&_culture_2015_100}}" file: /data/cpi/cpi_linechart.csv legend: position: top right diff --git a/src/dashboard/cpi/_data/visualisation/young_people_barchart.yml b/src/dashboard/cpi/_data/visualisation/young_people_barchart.yml index 419c9dc0..d35df67b 100644 --- a/src/dashboard/cpi/_data/visualisation/young_people_barchart.yml +++ b/src/dashboard/cpi/_data/visualisation/young_people_barchart.yml @@ -23,11 +23,11 @@ config: category: sector columns: - name: monthly - template: '{{sector}}
monthly change: {{ monthly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nmonthly change: {{ monthly_pct_change | toFixed(1)}}%' - name: quarterly - template: '{{sector}}
quarterly change: {{ quarterly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nquarterly change: {{ quarterly_pct_change | toFixed(1)}}%' - name: yearly - template: '{{sector}}
yearly change: {{ yearly_pct_change | toFixed(1)}}%' + template: '{{sector}}\nyearly change: {{ yearly_pct_change | toFixed(1)}}%' file: /data/cpi/cpi_barchart.csv id: cpi-young-people legend: diff --git a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years.yml b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years.yml index f2018fb7..e87116b5 100644 --- a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years.yml +++ b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years.yml @@ -31,9 +31,9 @@ config: - name: x_tick_labels template: '{{ quarter_axis_label }}' - name: label_6_to_12_months - template: '{{quarter_label}}
Proportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' - name: label_12_months - template: '{{quarter_label}}
Proportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' series: - title: 6 to 12 months x: quarter_index diff --git a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years_minimal.yml b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years_minimal.yml index 22e3883c..467d92b8 100644 --- a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years_minimal.yml +++ b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_3_years_minimal.yml @@ -44,9 +44,9 @@ config: label: '' columns: - name: label_6_to_12_months - template: '{{quarter_label}}
Proportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' - name: label_12_months - template: '{{quarter_label}}
Proportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' series: - title: 6 to 12 months x: quarter_index diff --git a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all.yml b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all.yml index b4d32ee3..1af70bd7 100644 --- a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all.yml +++ b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all.yml @@ -30,9 +30,9 @@ config: - name: x_tick_labels template: '{{ quarter_axis_label }}' - name: label_6_to_12_months - template: '{{quarter_label}}
Proportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' - name: label_12_months - template: '{{quarter_label}}
Proportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' series: - title: '6 to 12 months' x: 'quarter_index' # Column heading to use for x-value diff --git a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all_minimal.yml b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all_minimal.yml index cb8696c8..871093e7 100644 --- a/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all_minimal.yml +++ b/src/dashboard/labour-market/_data/visualisation/long_term_unemployment_all_minimal.yml @@ -50,9 +50,9 @@ config: label: '' columns: - name: label_6_to_12_months - template: '{{quarter_label}}
Proportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion between 6 and 12 months: {{age_16_to_24_unemployed_6_to_12_months_rate_sa | toFixed(1) }}%' - name: label_12_months - template: '{{quarter_label}}
Proportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' + template: '{{quarter_label}}\nProportion over 12 months: {{age_16_to_24_unemployed_over_12_months_rate_sa | toFixed(1) }}%' series: - title: '6 to 12 months' x: 'quarter_index' # Column heading to use for x-value diff --git a/src/dashboard/neet/_data/visualisation/all_young_men.yml b/src/dashboard/neet/_data/visualisation/all_young_men.yml index 95eab709..ffbae86b 100644 --- a/src/dashboard/neet/_data/visualisation/all_young_men.yml +++ b/src/dashboard/neet/_data/visualisation/all_young_men.yml @@ -24,11 +24,11 @@ config: - name: x_tick_labels template: '{{ quarter_axis_label }}' - name: "Total" - template: "{{quarter_label}}
NEET rate: {{men_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" + template: "{{quarter_label}}\\nNEET rate: {{men_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" - name: unemployed_tooltip - template: "{{quarter_label}}
Unemployed rate: {{ men_age_16_to_24_neet_unemployed_rate_sa | toFixed(1) }}%" + template: "{{quarter_label}}\\nUnemployed rate: {{ men_age_16_to_24_neet_unemployed_rate_sa | toFixed(1) }}%" - name: economically_inactive_tooltip - template: "{{quarter_label}}
Economically inactive rate: {{ men_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1) }}%" + template: "{{quarter_label}}\\nEconomically inactive rate: {{ men_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1) }}%" series: - title: "Total NEET rate" x: "quarter_index" # Column heading to use for x-value diff --git a/src/dashboard/neet/_data/visualisation/all_young_people.yml b/src/dashboard/neet/_data/visualisation/all_young_people.yml index 8e55de64..eae88f39 100644 --- a/src/dashboard/neet/_data/visualisation/all_young_people.yml +++ b/src/dashboard/neet/_data/visualisation/all_young_people.yml @@ -26,11 +26,11 @@ config: - name: x_tick_labels template: '{{ quarter_axis_label }}' - name: "Total" - template: "{{quarter_label}}
NEET rate: {{people_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" + template: "{{quarter_label}}\\nNEET rate: {{people_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" - name: unemployed_tooltip - template: "{{quarter_label}}
Unemployed rate: {{people_age_16_to_24_neet_unemployed_rate_sa | toFixed(1)}}%" + template: "{{quarter_label}}\\nUnemployed rate: {{people_age_16_to_24_neet_unemployed_rate_sa | toFixed(1)}}%" - name: economically_inactive_tooltip - template: "{{quarter_label}}
Economically inactive rate: {{people_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1)}}%" + template: "{{quarter_label}}\\nEconomically inactive rate: {{people_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1)}}%" series: - title: "Total NEET rate" x: "quarter_index" # Column heading to use for x-value diff --git a/src/dashboard/neet/_data/visualisation/all_young_women.yml b/src/dashboard/neet/_data/visualisation/all_young_women.yml index 88aede5a..9c299526 100644 --- a/src/dashboard/neet/_data/visualisation/all_young_women.yml +++ b/src/dashboard/neet/_data/visualisation/all_young_women.yml @@ -25,11 +25,11 @@ config: - name: x_tick_labels template: '{{ quarter_axis_label }}' - name: "Total" - template: "{{quarter_label}}
NEET rate: {{women_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" + template: "{{quarter_label}}\\nNEET rate: {{women_age_16_to_24_neet_total_rate_sa | toFixed(1)}}%" - name: unemployed_tooltip - template: "{{quarter_label}}
Unemployed rate: {{ women_age_16_to_24_neet_unemployed_rate_sa | toFixed(1) }}%" + template: "{{quarter_label}}\\nUnemployed rate: {{ women_age_16_to_24_neet_unemployed_rate_sa | toFixed(1) }}%" - name: economically_inactive_tooltip - template: "{{quarter_label}}
Economically inactive rate: {{ women_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1) }}%" + template: "{{quarter_label}}\\nEconomically inactive rate: {{ women_age_16_to_24_neet_economically_inactive_rate_sa | toFixed(1) }}%" series: - title: "Total NEET rate" x: "quarter_index" # Column heading to use for x-value diff --git a/src/dashboard/vacancies/_data/visualisation/growth_key_youth_sectors.yml b/src/dashboard/vacancies/_data/visualisation/growth_key_youth_sectors.yml index a27ccaa2..50a7cf5b 100644 --- a/src/dashboard/vacancies/_data/visualisation/growth_key_youth_sectors.yml +++ b/src/dashboard/vacancies/_data/visualisation/growth_key_youth_sectors.yml @@ -33,9 +33,9 @@ config: category: "Sector" # Category names come from columns: - name: growth_last_quarter - template: "{{Sector}}
quarterly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" + template: "{{Sector}}\\nquarterly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" - name: growth_compared_with_2020 - template: "{{Sector}}
growth since pre-coronavirus: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" + template: "{{Sector}}\\ngrowth since pre-coronavirus: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" series: - title: "Growth since previous quarter (%)" value: "Growth since previous quarter (%)" diff --git a/src/dashboard/vacancies/_data/visualisation/growth_wanted_youth_sectors.yml b/src/dashboard/vacancies/_data/visualisation/growth_wanted_youth_sectors.yml index 69d680d7..6e9286f9 100644 --- a/src/dashboard/vacancies/_data/visualisation/growth_wanted_youth_sectors.yml +++ b/src/dashboard/vacancies/_data/visualisation/growth_wanted_youth_sectors.yml @@ -33,9 +33,9 @@ config: category: "Sector" # Category names come from columns: - name: growth_last_quarter - template: "{{Sector}}
monthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" + template: "{{Sector}}\\nmonthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" - name: growth_compared_with_2020 - template: "{{Sector}}
quarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" + template: "{{Sector}}\\nquarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" series: - title: "Growth since previous quarter (%)" value: "Growth since previous quarter (%)" diff --git a/src/dashboard/vacancies/_data/visualisation/quarterly_growth_all_sectors.yml b/src/dashboard/vacancies/_data/visualisation/quarterly_growth_all_sectors.yml index 5de71585..eee73e48 100644 --- a/src/dashboard/vacancies/_data/visualisation/quarterly_growth_all_sectors.yml +++ b/src/dashboard/vacancies/_data/visualisation/quarterly_growth_all_sectors.yml @@ -33,9 +33,9 @@ config: category: "Sector" # Category names come from columns: - name: growth_last_quarter - template: "{{Sector}}
monthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" + template: "{{Sector}}\\nmonthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" - name: growth_compared_with_2020 - template: "{{Sector}}
quarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" + template: "{{Sector}}\\nquarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" series: - title: "Growth since previous quarter (%)" value: "Growth since previous quarter (%)" diff --git a/src/dashboard/vacancies/_data/visualisations.yml b/src/dashboard/vacancies/_data/visualisations.yml index 1f736046..ad5c7426 100644 --- a/src/dashboard/vacancies/_data/visualisations.yml +++ b/src/dashboard/vacancies/_data/visualisations.yml @@ -121,9 +121,9 @@ category: "Sector" # Category names come from columns: - name: growth_last_quarter - template: "{{Sector}}
monthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" + template: "{{Sector}}\\nmonthly change: {{ Growth since previous quarter (%) | toFixed(1)}}%" - name: growth_compared_with_2020 - template: "{{Sector}}
quarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" + template: "{{Sector}}\\nquarterly change: {{ Growth since pre-coronavirus January to March 2020 (%) | toFixed(1)}}%" series: - title: "Growth since previous quarter (%)" value: "Growth since previous quarter (%)"