Forum: Ruby on Rails Annotating Graphs cleanly

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Andrew V. (Guest)
on 2009-05-23 00:09
(Received via mailing list)
Hello!

I am working on an application where I need to annotate graphs I
generate in such a way that each point is labelled with a small bit of
text.

For instance, my point may be drawn as (12, 100), but I need a label
on that point thats a brief line of text, such as "New membership mail
drop".

I've looked at a few libraries, like Gruff, but they do not do this
for me, so I am working on it myself using RMagick.


My question, before I get too deep into codin':
Anyone know of a library that does that?  The big deal part is getting
the text on the image, and not overlapping.  If you have 2 points
about the same level, the text1 may overlap on text2.

I am hoping someone has seen a library, or algorithm that can help jog
the labels around so they don't overlap.

Thanks.

~A
This topic is locked and can not be replied to.