ChartDirector Ver 3.0 (Perl Edition)

Incorporating Charts in Web Pages


In many real application, the charts created by ChartDirector are to be displayed inside HTML based web pages.

To display any image in a HTML web page, one needs to insert an <IMG> tag in the HTML web page. When the browser sees the <IMG> tag, it will load the image using the URL in the <IMG> tag in another HTTP connection.

This is no difference to display a ChartDirector chart in a HTML web page. An <IMG> tag must be used. In this case, the URL in the <IMG> tag points to a "ChartDirector script" (a script using ChartDirector to create and deliver chart images) instead of a static image file.

For example:

<HTML> <BODY> <h1>Hello World!</h1> <p>Hi, this is my first web page with ChartDirector charts.</p> <IMG SRC="http://aaa.bbb.ccc.ddd/cgi-bin/perldemo_cgi/simplebar.pl"> More HTML elements ...... </BODY> </HTML>

In the above code, the "http://aaa.bbb.ccc.ddd/cgi-bin/perldemo_cgi/simplebar.pl" is a ChartDirector script that creates and delivers a chart.

You can include multiple charts in the same web page by using multiple <IMG> tags.