Method: Statsample::Graph::Histogram#report_building_text
- Defined in:
- lib/statsample/graph/histogram.rb
#report_building_text(generator) ⇒ Object
186 187 188 189 190 191 192 193 194 195 |
# File 'lib/statsample/graph/histogram.rb', line 186 def report_building_text(generator) pre_vis #anchor=generator.toc_entry(_("Histogram %s") % [@name]) step= @hist.max_val > 40 ? ( @hist.max_val / 40).ceil : 1 @hist.range.each_with_index do |r,i| next if i==@hist.bins generator.text(sprintf("%5.2f : %s", r, "*" * (@hist.bin[i] / step).floor )) end end |