Hi, I have some problems with Gruff & legends. How do you handle many datas? When you have to many labels, the list doesn''t fit in the image. Looking at the source code, the draw_legend() just calculate the width of the legend (sum of the labels size) and append the labels to the current_x_offset. This is really painful for long legends... Is there a way to change this behavior naturally or do I have to patch it? If someone has already geeked it, I don''t want to reinvent the wheel... ;) ++ -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, Apr 03, 2007 at 08:47:14PM +0200, Pierre-Alexandre Meyer wrote :> Is there a way to change this behavior naturally or do I have to patch > it? If someone has already geeked it, I don''t want to reinvent the > wheel... ;)http://mouraf.org/documents/rails/gruff-0.2.8.patch -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pierre-Alexandre Meyer wrote:> On Tue, Apr 03, 2007 at 08:47:14PM +0200, Pierre-Alexandre Meyer wrote : >> Is there a way to change this behavior naturally or do I have to patch >> it? If someone has already geeked it, I don''t want to reinvent the >> wheel... ;) > > http://mouraf.org/documents/rails/gruff-0.2.8.patch >Have you submitted it to the author? Looks good to me. Jonathan -- Jonathan Weiss http://blog.innerewut.de --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Wed, Apr 04, 2007 at 02:05:03PM +0200, Jonathan Weiss wrote :> Have you submitted it to the author? Looks good to me.Actually, there are lots of patch in the trac which are not included in the core or revised by the author. Maybe he hasn''t much time to work on this project. Besides, look at my little post http://mouraf.org/blog/show/14. The lines are not centered and the final legend is not really pretty. I really don''t know what to do : center each lines, justify legend, ... I think the best issue would be to draw a vertical legend on several columns. Moreover, I haven''t provide tests so it''s not submittable ;) -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Wed, Apr 04, 2007 at 05:42:29PM +0200, Pierre-Alexandre Meyer wrote :> Besides, look at my little post http://mouraf.org/blog/show/14. > The lines are not centered and the final legend is not really pretty. I > really don''t know what to do : center each lines, justify legend, ... I > think the best issue would be to draw a vertical legend on several > columns.Sucks with several lines: http://mouraf.org/documents/rails/sucks.png But rocks with single line: http://mouraf.org/documents/rails/rocks.png -- ,========================. | Pierre-Alexandre Meyer | | email : pam-1sEOgp2Wo8Qdnm+yROfE0A@public.gmane.org | `========================'' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---