Or a Google Charts way, see here
It takes a bit of coding, I post full source code there so you can adapt to your needs.