reading accelerometers

so i use analogread(a0) which reads the x axis of a accelerometer via usb connection from my pc to the arduino and records that data into a buffer, how do i access that data in the buffer so i can graph it against time? thanks for all the help

If you put it in the buffer surely you can get it out. So is the question really how to upload the data to a PC for graphing? Or are you using a GLCD? What frequency does this need to occur at? Against what time base, time of day or just relative to the last reading? etc etc.