Back to Localai

Starchart

website/layouts/shortcodes/starchart.html

4.8.0959 B
Original Source

{{- $pts := .Site.Data.stars -}} {{- $marks := .Site.Data.milestones -}} {{- $meta := .Site.Data.starsmeta -}} {{- $last := index $pts (sub (len $pts) 1) -}} GitHub stars, {{ index (index $pts 0) 0 }} to {{ index $last 0 }} {{ lang.FormatNumber 0 (index $last 1) }} stars, and the four changes along the way Read off the GitHub stargazers API, which records when each star was given, so this is the measured curve rather than a redrawing of it. Hover or drag across the line to read any date. The API stops paginating at 40,000 items, so everything up to {{ $meta.measuredUntil }} is measured and the dashed tail to today's total is a straight line between two known points, not data.

#Read it as a table

Cumulative GitHub stars, sampled every 800 stars| Date | Stars | | --- | --- | {{- range $i, $p := $pts }}{{ if or (eq (mod $i 5) 0) (eq $i (sub (len $pts) 1)) }} | {{ index $p 0 }} | {{ index $p 1 }} | {{- end }}{{ end }}