Results 1 to 3 of 3

Thread: Bar graphs, any way to make fill rec, go from bottom to top rather then top to bottom

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member voidflux's Avatar
    Join Date
    Jun 2003
    Location
    Brockway, PA
    Posts
    290

    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


    Thanks for listening
    Last edited by voidflux; Oct 10th, 2004 at 12:30 PM.
    C¤ry Sanchez
    Computer Science/Engineering
    @ Penn State
    IBM.zSeries Intern
    Mandriva 2007

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width