clbustos / svg-graph

SVG:::Graph is a pure Ruby library for generating charts, which are a type of graph where the values of one axis are not scalar. SVG::Graph has a verry similar API to the Perl library SVG::TT::Graph, and the resulting charts also look the same. This isn't surprising, because SVG::Graph started as a loose port of SVG::TT::Graph, although the internal code no longer resembles the Perl original at all.
http://www.germane-software.com/software/SVG/SVG::Graph/
Other
13 stars 36 forks source link

ArgumentError: flag after precision #13

Open yegor256 opened 5 years ago

yegor256 commented 5 years ago
ArgumentError: flag after precision
  from SVG/Graph/Graph.rb:671:in `%'
  from SVG/Graph/Graph.rb:671:in `make_datapoint_text'
  from SVG/Graph/Line.rb:260:in `block (2 levels) in draw_data'
  from SVG/Graph/Line.rb:247:in `each_index'
  from SVG/Graph/Line.rb:247:in `block in draw_data'
  from SVG/Graph/Line.rb:201:in `each'
  from SVG/Graph/Line.rb:201:in `draw_data'
  from SVG/Graph/Graph.rb:213:in `burn'

I can't show the code and the data, since this error happens only sometimes. In most other cases everything works just fine.