There are a number of libraries to help create graphs. Here I show how to integrate Highcharts into a Rails app.

Read more at the source