Skip to content

Add formula charts to the rating page - #13

Merged
boomzero merged 1 commit into
masterfrom
rating-charts
Oct 18, 2026
Merged

boomzero merged 1 commit into
masterfrom
rating-charts

Conversation

@boomzero

@boomzero boomzero commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Adds six charts to features/rating.md:

  • daily AC discount g(a)
  • 做题量 (volume) vs S
  • 准确度 (accuracy) vs P, with a top axis for average failures per solved problem
  • 可信度 K vs S
  • 坚持度 (persistence) vs D
  • overall rating vs S for 0 / 1 / 3 / 7 failures per problem, over the username colour bands

How it works

  • scripts/rating_charts.py generates the SVGs into features/charts/. It uses the same formula as the page and reproduces the worked example (33). Rerun it whenever the formula changes.
  • The SVGs are inlined with ?raw + v-html, not used as <img>, so they use the theme's --vp-* variables and follow the site's light/dark toggle. When an SVG is opened on its own, it falls back to monochrome colours that follow the OS colour scheme.
  • The band colours match .rating.* in style.css. ClipPath ids are unique per chart, and the embedded <style> is scoped to .rating-chart.

Testing: vitepress build passes and all six charts are in the built page. The live page has been checked in both light and dark mode: the charts use the site's theme colours and font and switch with the toggle.

🤖 Generated with Claude Code

Six inline SVG charts, one per part of the formula plus an overall
rating-vs-solved chart over the username colour bands. They are
generated by scripts/rating_charts.py and inlined via ?raw + v-html so
they pick up the theme's --vp-* variables and follow the light/dark
toggle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T13:16:06.047775Z 1339988 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1339988
Status: ✅  Deploy successful!
Preview URL: https://7b4f94b1.docs-42b.pages.dev
Branch Preview URL: https://rating-charts.docs-42b.pages.dev

View logs

@boomzero

Copy link
Copy Markdown
Member Author
image

@boomzero
boomzero merged commit 08cc4ce into master Oct 18, 2026
4 checks passed
@boomzero
boomzero deleted the rating-charts branch October 18, 2026 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant