"areaPlotOverlayText"

Defines an overlay text that is displayed over the plot area.

Synopsis

trendObj.areaPlotOverlayText(int area, string text)

getValue(trendObj, "areaPlotOverlayText", int area, string &text);

setValue(trendObj, "areaPlotOverlayText", int area, string text);

Parameter

Parameter Description
trendObj Trend for which the attributed should be get.
area ID of the area for which the attribute should be get.
text The text that should be displayed in front of the plot area

Description

The function places a Label object directly over the plot area. The content of this label is always aligned to the bottom.

The label can be used to display HTML encoded content or an icon.

The label moves accordingly if the area is resized.

Image: Overlay Text

The following example adds a short HTML example over the first area of the trend "myTrend".

main()
{
  myTrend.areaPlotOverlayText(1, "<html><table ><tr style='font-size:26px'><td width='10%'>Left</td><td width='80%'></td><td width='10%'>Right</td></tr></table></html>");
}

Assignment

Trend