diff --git a/Neon Vision Editor.xcodeproj/project.pbxproj b/Neon Vision Editor.xcodeproj/project.pbxproj index 668914e..f0098d0 100644 --- a/Neon Vision Editor.xcodeproj/project.pbxproj +++ b/Neon Vision Editor.xcodeproj/project.pbxproj @@ -361,7 +361,7 @@ CODE_SIGNING_ALLOWED = YES; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 401; + CURRENT_PROJECT_VERSION = 402; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = CS727NF72U; ENABLE_APP_SANDBOX = YES; @@ -444,7 +444,7 @@ CODE_SIGNING_ALLOWED = YES; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 401; + CURRENT_PROJECT_VERSION = 402; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = CS727NF72U; ENABLE_APP_SANDBOX = YES; diff --git a/README.md b/README.md index a40422b..6231d95 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ GitHub release downloads trend chart

-

Styled line chart shows per-release totals plus a 14-day git clone volume strip.

+

Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.

Git clones (last 14 days): 1508.

Snapshot total downloads: 547 across releases.

diff --git a/docs/images/release-download-trend.svg b/docs/images/release-download-trend.svg index ee679f8..3bf6d72 100644 --- a/docs/images/release-download-trend.svg +++ b/docs/images/release-download-trend.svg @@ -1,6 +1,6 @@ GitHub Release Downloads and Clone Trend - Line chart of release downloads with highlighted points and a git clone sparkline. + Line chart of release downloads with highlighted points and a scaled 14-day git clone volume bar. @@ -80,6 +80,12 @@ Git Clones (last 14 days): 1508 - - Clone volume relative to release-download snapshot. + + + + + 0 + 800 + 1600 + Scale: 0 to 1600 clones in the last 14 days. diff --git a/scripts/update_download_metrics.py b/scripts/update_download_metrics.py index 2726e67..526f0d9 100755 --- a/scripts/update_download_metrics.py +++ b/scripts/update_download_metrics.py @@ -199,20 +199,28 @@ def generate_svg(points: list[ReleasePoint], clone_total: int, snapshot_date: st bar_top = 450 bar_bottom = 486 track_width = panel_right - panel_left - baseline = max(1, total_downloads_for_scale(points), clone_total) - fill_ratio = min(1.0, clone_total / baseline) + clone_scale_max = max(100, y_top(max(1, clone_total), ticks=4)) + fill_ratio = min(1.0, clone_total / clone_scale_max) fill_width = max(8.0, track_width * fill_ratio) + mid_value = clone_scale_max // 2 + mid_x = panel_left + (track_width * 0.5) clone_panel.extend( [ f' ', + f' ', + f' ', + f' ', f' ', - f' Clone volume relative to release-download snapshot.', + f' 0', + f' {mid_value}', + f' {clone_scale_max}', + f' Scale: 0 to {clone_scale_max} clones in the last {CLONES_WINDOW_DAYS} days.', ] ) return """ GitHub Release Downloads and Clone Trend - Line chart of release downloads with highlighted points and a git clone sparkline. + Line chart of release downloads with highlighted points and a scaled 14-day git clone volume bar. @@ -325,12 +333,17 @@ def update_readme(content: str, latest_tag: str, total_downloads: int, clone_tot ) content = re.sub( r'(?m)^

Styled line chart with highlighted points shows per-release totals and trend direction\.

$', - '

Styled line chart shows per-release totals plus a 14-day git clone volume strip.

', + '

Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.

', content, ) content = re.sub( r'(?m)^

Styled line chart shows per-release totals plus a 14-day git clone sparkline\.

$', - '

Styled line chart shows per-release totals plus a 14-day git clone volume strip.

', + '

Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.

', + content, + ) + content = re.sub( + r'(?m)^

Styled line chart shows per-release totals plus a 14-day git clone volume strip\.

$', + '

Styled line chart shows per-release totals plus a scaled 14-day git clone volume bar.

', content, ) content = re.sub(