Html property: Chart class

Description

Use this property to retrieve the HTML string required to render the chart within an HTML area on the page. This is useful for rendering a chart on a page that does not have a Chart control but has an HTML area control, or for rendering charts on a tile that uses a content type of HTML area.

Use the CreateObject function, rather than the GetRatingGauge function, to instantiate the chart object when intending to use this property.

Note:

On a fluid page, the combination of the AspectRatio, Height, and Width properties is used to determine the dimensions of the chart rendered via the returned HTML. If you don't specify these properties, the chart's dimensions automatically fit within the containing element.

This property is read-only.

Example

Local RatingGaugeChart &oRating;
&oRating = CreateObject("RatingGaugeChart");

&oRating.Value = 5;

&oRating.Min = 0;
&oRating.Max = 10;
&oRating.Step = 0.5;
&oRating.Width = 200;
&oRating.Height = 300;

rem set the HTML area control field value to Chart HTML;
QE_DYNCHART_WRK.QE_HTMLAREA = &oRating.Html;