can anyone give me an example or point me in the right direction of dynamically creating a pie chart?

Thanks