If it's an applet, then whether it's embedded in a JSP or not is irrelevant (unless there's some kind of additional client/server behavior that you neglected to mention).
Anyway, here's the solution:
1) Find some Java software that generates charts. There's probably a million such things on SourceForge, and I keep seeing ads in magazines for commercial versions.
2) Use that software in an applet.