Hi all,
I'm am trying create some Pie graphs like this CODE* but the graphs come out without the percentage numbers (hide_line_markers), i have had to edit out this line in the pie.rb* file to get the number to shot up.
- Am i doing some thinking wrong?
- How can i fix this?
Thanks in advanced for any help.
*lib/gruff/pie.rb
------
def draw
@hide_line_markers = true #I have edited this out and it works.
-------
Code:
-------
g = Gruff::Pie.new
g.theme_keynote
g.title = "Bla bla"
g.zero_degree = -90.0
g.legend_font_size = 11
g.legend_box_size = 11
g.marker_font_size = 12
g.hide_line_markers = false # <-- Not working
g.hide_line_numbers = true
...
g.data(elem[0], elem[1])
...
g.labels = {0 => 'X'}
g.write('gfx.png')
-----------
|