Bar graphs, any way to make fill rec, go from bottom to top rather then top to bottom
Hello everyone, i'm writing a graphing application (vertical bars). My problem is, when I do the following:
Code:
g.fillRect(115,300,20,30);
it will draw the bar, but its upside down. Because its using 300 as the y axis, and 115 as the x axis then the 30 will make it grow downwards from the orginal point, (115,300);
My x axis line is at 300, I used drawLine to draw the x and y axis.
so i'm getting somthing like this:
-------------------------------------------------- x axis
| |
| |
| |
----
ANy idea how i can make it right side up?
Or maybe i'm approaching this totally wrong :ehh:
Thanks for listening :bigyello: