From: Paul Lutus (nospam_at_nosite.zzz)
Date: Fri, 01 Oct 2004 11:34:00 -0700
> Does anyone have a servlet that draws a poly-line graph that I can
> use? I have one but it draws the graph with the origin at the top left
> corner of the image object. I just need to know how to translate the
> graph so that the origin is at the bottom left corner so it looks like
> a normal graph with x and y coordinates.
1. Find the height of the drawing surface.
2. Subtract all y coordinates from the height established in (1).
In other words, instead of plotting x,y, plot x,h-y.
-- Paul Lutus http://www.arachnoid.com