GetChartURL function
Syntax
GetChartURL(&Chart)
Description
Use the GetChartURL function to generate the URL of a chart object. This URL can then be used in your application for displaying a chart.
GetChartURL can be used only with the Chart class and Gantt class.
Parameters
| Parameter | Description |
|---|---|
|
&Chart |
Specify an already instantiated Chart object or Gantt object. |
Returns
A URL as a string.
Example
Function IScript_GetChartURL()
local object &MyChart;
local string &MyURL;
&MyChart = CreateObject("Chart");
&MyChart .SetData = xx;
/* xx will be a data row set */
&MyURL = %Response.GetChartURL(&MyChart);
&sMap = &oChart.ImageMap;
%Response.Write("<HTML><IMG SRC=");
%Response.Write(&MyURL);
%Response.Write(" USEMAP=#THEMAP></IMG><MAP NAME=THEMAP>");
%Response.Write(&sMap);
%Response.Write("</MAP></HTML>");
End-Function;
Related Topics