refined chart.rb
refined chart.rb