This is a graph made with C3.js (a D3-based reusable chart library) showing the most popular streams based on number of viewers on Twitch.
See it here: https://seewes.com/twitch/
Navigate to the root folder and run bower install
in the command line to install the bower packages.
In my server, I have the Twitch API GET /games/top
running every 15 minutes, saving the top 10 games (with the timestamp and number of viewers) into a MySQL database. The last 24 hours of data is processed by PHP and sent as JSON here: https://seewes.com/twitch/api2.php