Google's Chart API is pretty sweet. Encode your data into an image URL and Google will instantly render a pretty graph for you. It's quite flexible. Which of course means it can be hacked for purposes it was never intended for -- such as generating Valentines Day cards. Google employee Neil shows you how create a heart shape, ready for Valentine’s Day, using Charts API.
More info: Valentine API