This page demonstrates chart.js.

This page shows a line chart using chart.js, generated from two arrays, one for the X axis and the other for the Y axis. The data updates every time loop() is called, adding a new point at the end, and deleting the oldest point.

This demonstrates a line chart, but the basic framework could work for other types of chart by changing the context and config variables.

This could be combined with many different data gathering examples, APIs, etc.