Skip to content

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
Collaborator

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.

@dscho
Copy link
Member Author

dscho commented Oct 7, 2024

Superseded by #1894

@dscho dscho closed this Oct 7, 2024
@dscho dscho deleted the fix-broken-googlecharts branch October 7, 2024 08:23
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