To embed a svg file representing a chart inside an html document, generate a svg file representing a chart as shown in the Generating an SVG chart topic. In the html document write an <embed> tag to reference the image file that is generated.
<embed type="image/svg+xml" src="chart.svg"; height="300" width="500"/>
In a web application environment the svg content can be generated by a servlet. In this case the svg content is streamed to the response buffer of the servlet that generates the carts. HTML documents can call the servlet to generate the charts as follows:
<embed type="image/svg+xml" src="MySVGChartServlet" height="300" width="500"/>
Related reference
Programmer's Guide