See RChart, it will support both approaches: http://www.java4less.com
and click on "RChart".
It has the following advantages:
- very reasonable price (starting at $24)
- Documentation , support and online-tutorial are included in the price.
- Works as applet, servlet or bean.
- It works with java 1.1 also
- Supports more than 18 types of charts andhas interactive features (zoom,tips,scroll,html
- Includes RChart Visual Builder (almost no programming)
- Can read data from database (if working in the server).
- source code is available can be freely modified for commercial applications also.