updated chart.rb