Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Division By Zero Error on Documented Example #21

Closed
prikha opened this Issue May 30, 2012 · 6 comments

Comments

Projects
None yet
5 participants
Contributor

prikha commented May 30, 2012

Sorry to disturb, but i`ve faced some problem with templates from documentation:

  g = Gruff::Line.new
  g.title = "A Line Graph"
  g.data 'Fries', [20, 23, 19, 8]
  g.data 'Hamburgers', [50, 19, 99, 29]
  g.write("test/output/line.png")

this produces:

ZeroDivisionError: divided by 0

dmand commented Jun 5, 2012

I confirm it. I have the same error on this and other examples.

Contributor

prikha commented Jun 7, 2012

Pull request merged for a quick walkaround #22

Anyway we can get a new gem pushed?

Contributor

prikha commented Jun 28, 2012

Don't know when the gem would be pushed but you can explicitly set marker_count = 1 and it solves the issue.

benben commented Jul 14, 2012

+1 for pushing a new gem version!

Collaborator

donv commented Jul 31, 2013

Working to release a new 0.3.8 gem on monday. Please test master as much as you can before then. If anything slips through, we will release a 0.3.9 bugfix release pretty quickly.

@ghost ghost assigned donv Jul 31, 2013

@donv donv closed this Jul 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment