To embed an chart image inside a html document, generate a chart image file as shown in the Generating an image chart topic. In the HTML document insert an <img> tag to reference the image file generated.
<img src="chart.jpeg" height="300" width="500"/>
In a web application environment the images can be generated by a servlet. In this case the images are streamed to the response buffer of the servlet that generates the charts. HTML documents can call the servlet to generate the charts as follows:
<img src="MyImageChartServlet" height="300" width="500"/>
Related reference
Programmer's Guide