Update chart.rb

Added some comments