Sparklines for Java is released under the Apache License.
The package contains a Servlet that can be added to a web project to Create sparklines based on request parameters. It also includes a taglib for easily formatting the required parameters. There's also an API to directly create a BufferedImage in any Java code.