This page demonstrates the use of Batik’s JSVGCanvas swing component in a Java applet.
| | | Expense | Amount | |---------|--------| | Shoe | | | Car | | | Travel | | | Computer | |
The applet (view source) displays the barChart.svg sample from the Batik distribution using a
JSVGCanvas. Script in the web page then interacts with the applet, by calling the
updateBar method of the applet object when the Update chart button is pressed. This method modifies the SVG document being displayed to update the heights of the bars.