ChartDirector 6.0 (Python Edition)

WebChartViewer.WebChartViewer


Usage

WebChartViewer(query, id)

Description

Creates a new WebChartViewer object.

Arguments

ArgumentDefaultDescription
query(Mandatory)A standard Python cgi.FieldStorage object representing the current query. It should be created with code similar to:

    import cgi
    query = cgi.FieldStorage()


This object is used to analyze the HTTP request to see if it is a partial update request and initialize the properties of the WebChartViewer properly.
id(Mandatory)The id of the WebChartViewer, which is also used as the id attribute of the <IMG> tag for displaying the chart. It should start with A-Z, a-z or underscore, and consists entirely of alphanumeric characters with no spaces

Return Value

The WebChartViewer object created.