Stunts Forum

ZakStunts - the Competition => General Chat - ZSC => Topic started by: dreadnaut on September 12, 2018, 02:21:20 PM

Title: Those tiny graphs...
Post by: dreadnaut on September 12, 2018, 02:21:20 PM
This might not be very interesting, but it's quite satisfying if you are a data nerd.

You know those little bar charts at the top of the News Archive (http://zak.stunts.hu/index.php?page=newsarc)? The ones that show the number of posts per day — like the one in the attachment.

Well, these used to be little PNG images, created on the fly. But now they are little SVG images, created on the fly :D

They look exactly the same as before, but they are part of the page (no extra server request), they scale to any size without blurring, and... try to move the mouse over one of the columns!
Title: Re: Those tiny graphs...
Post by: Cas on September 12, 2018, 08:23:07 PM
Ah, that's really cool!  I had not given much attention to them before, but now I went right away to test them XD
Precisely, I was thinking that the next step in my learning PHP will be image synthesis. There are a number of things I'm not sure about. I'll be asking you tons of things, ha, ha.
Title: Re: Those tiny graphs...
Post by: afullo on September 12, 2018, 11:22:58 PM
While vector is better than raster, but not Vector the troll appeared here in 2015...  :D