Link to home
Start Free TrialLog in
Avatar of kawas
kawasFlag for United States of America

asked on

Graphing libraries to create grid like charts

Hi,
I want to create some graphs programatically, using Java or Perl. I want to replicate a graph like the following on 'grid paper':

|
|    U
|UDUD
|UDUD
|U
|____________

The only thing missing from the example is the grid background (sorry, i am not that talented to show that here). For Java, i found the library jfreecharts, but I didnt dig too deep into it. For perl, i found GD::Charts. Nice module, but I couldnt figure out how to create the grids properly...

I am looking for code examples, not pointers to doc (of course I would like pointers if you also give me code samples).
Thanks
Avatar of Adam314
Adam314

I've looked at both jfreecharts and GD::Charts, and either I don't understand your ascii chart, or I don't think they'll give you want you want.

Would it be possible for you to provide a graphical version of what you want.  EE now allows you to attach images.  This would make it easier.
Avatar of kawas

ASKER

maybe something along the lines of: http://stockcharts.com/help/doku.php?id=support:understanding_pnf_charts 

They have a similar type chart near the bottom
I don't think either the GD::Charts or eh jfreecharts will do that.  If you saw they could, I might have missed something.

If your output is going to a webpage, you might just want to use an HTML table - which is what the stockcharts.com site is using.

Otherwise, I don't know of a module that creates tables like those.  I think you could just use the GD module to draw them though.
Avatar of kawas

ASKER

how hard would it be to use GD directly? Do you have experience? Perhaps a small example to get me going? Thanks Adam
May be this can be done by the development library that comes with OpenOffice.
I have no experience with it.
Please look at: http://extensions.services.openoffice.org/taxonomy/term/64

Check out "R4Calc".

;JOOP!
ASKER CERTIFIED SOLUTION
Avatar of Adam314
Adam314

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kawas

ASKER

thanks