Embedding a GIF Image in a web page

Note: If you have enabled Automatic PNG Detection (see "Automatic PNG Detection" in Chapter 3 of the PopChart Server User Guide), this request will generate a PNG image on browsers that support PNG. You cannot override this functionality.

You can generate a GIF PopChart image using the @_GIF server command. For example, the following HTTP request will generate a GIF PopChart image:

http://localhost:2001/?@_FILEexamples/apfiles/bar.pcxml@_GIF

You can embed a GIF image in a web page simply by making it the source of an image tag. For example, the following image tag embeds the GIF image we created with the HTTP request above. It also provides an alternate text description of My PopChart in case the image loads slowly, or for the visually impaired.

<img src="http://localhost:2001/?@_FILEexamples/apfiles/bar.pcxml@_GIF" alt="My PopChart" />