This is an automated email from the ASF dual-hosted git repository.
niallp pushed a commit to branch experimental
in repository https://gitbox.apache.org/repos/asf/attic.git
The following commit(s) were added to refs/heads/experimental by this push:
new 2b05d58 Adjust scale depending on time period
2b05d58 is described below
commit 2b05d5828b4db708e70bf3607d1875a7d14284c8
Author: Niall Pemberton <[email protected]>
AuthorDate: Wed May 7 16:42:47 2025 +0100
Adjust scale depending on time period
---
experimental.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/experimental.md b/experimental.md
index b75fa44..2929d83 100644
--- a/experimental.md
+++ b/experimental.md
@@ -77,6 +77,10 @@ The following graph shows the number of Projects retiring
for each year (**NOT**
{% assign no_of_years = 20 -%}
{% assign first = sorted_years | size | minus: no_of_years | at_least: 0 -%}
{% assign second = first | plus: 1 -%}
+{% assign count_max = 0 -%}
+{%- for year in sorted_years offset: first -%}
+ {% assign count_max = count_max | at_least: year['p_count'] -%}
+{%- endfor %}
{: .note}
This is currently configured to show the last **{{ no_of_years}} years** of
retirements (easily changed through the `$no_of_years` variable).
@@ -88,7 +92,7 @@ xychart-beta
{%- for year in sorted_years offset: second -%}
{{ year['year'] | prepend: ', '}}
{%- endfor %}]
- y-axis "Number of Projects" 0 --> 18
+ y-axis "Number of Projects" 0 --> {{count_max | plus: 2 | at_least: 10}}
bar [{{ sorted_years[first]['p_count']}}
{%- for year in sorted_years offset: second -%}
{{ year['p_count'] | prepend: ', '}}