Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

small-and-fast: recreate the diagrams using chart.js #1889

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

dscho
Copy link
Member

@dscho dscho commented Sep 28, 2024

Changes

Recreate the currently broken diagrams on the "About - Small and Fast" page using chart.js.

Context

When the Google Charts API entered the Google Graveyard, the diagrams on the "About - Small and Fast" page got broken.

This fixes #1862.

Before After
image image

As a bonus, this allows readers to see the actual numbers when hovering over the bars:

image

The diagrams showing just how much faster Git performs than Subversion
were originally created using the Google Charts API, in
b6d341c (first graphs and new services, 2012-04-30).

In the meantime, the Google Charts API joined so many other things in
the Google Graveyard (see https://killedbygoogle.com/ for more details).

This means that the diagrams 404ed, and users were left wondering what
should have been demonstrated on this page.

But when a door closes, another door opens, and there are wonderful
contenders in this time and age, and we do not even have to display
static images, we can switch to proper, Javascript-backed charts where
you can even hover over the chart and see the exact number!

So let's do that. Based on https://www.chartjs.org/, reimplement those
charts. That also offers a wildly improved readability of the entire
thing, compared to the somewhat cryptic Google Chart URLs.

This fixes git#1862.

Signed-off-by: Johannes Schindelin <[email protected]>
@To1ne
Copy link
Contributor

To1ne commented Oct 1, 2024

I don't really like to bring in a client side library to render some bar charts we can render statically instead. Currently I'm experimenting with another idea. I'll let you know if it works out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images on "About - Git"/"Small and Fast" are "404 Not Found"
2 participants