Chart.js seems to be a good alternative to Google's Chart API and other commercial chart drawing libraries.
Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)
Look at the documentation for general issues and browser support Show archive.org snapshot .