void addHTMLTable(String,String)

Available only in PopChart Server Enterprise.

Syntax myPopChart.addHTMLTable([graph [,title]]);

Description Instructs PopChart Server to return a HTML table containing the data for the specified graph. The HTML table will appear below the PopChart image.

You can call this method more than once. The HTML tables will appear below the image in the order that they are added. Or, if you call this method without any parameters, PopChart Server will add an HTML table for all graph objects in the PopChart.

For more information about HTML Tables, refer to "HTML Data Tables" in Chapter 7 of the PopChart Server User Guide.

Parameters The addHTMLTable() method accepts the following optional parameters.

graph

String

The name of the graph object for which you want to return an HTML Table. If the specified graph object does not exist, the method will be ignored.

This parameter is optional. If it is not included, PopChart Server will return an HTML Table for all graphs.

title

String

The title for the HTML Table. This parameter is used as the value for the title attribute of the <table> tag.

This parameter is optional (except with the COM PopChart Embedder). If it is not included, PopChart Server will try to give your table a title for you by looking for a textbox named title. If it cannot find one, your table will not have a title.

Example 4.5 Adding an HTML Table

myPopChart.addHTMLTable("graph","PopChart Data");

Important: Due to limitations in the Component Object Model, addHTMLTable() always requires two arguments in the COM PopChart Embedder, even if you have no need to set the last parameter. If you don't need to set the title and you are using the COM PopChart Embedder, set the last argument to an empty string (e.g myPopChart.addHTMLTable "graph", "").