Type | Description | |||
String |
A string expression that specifies the format (including ex-HTML) format to
display the value's label. The expression supports the following keywords:
Additionally, the expression supports:
This property/method supports predefined constants and operators/functions as described here. |
For instance:
The ValueFormat property allows you to control how serie values are displayed. Specifically, a value-point will not be shown if the result of its expression evaluates to an empty string.
For instance:
"index = 0 ?
(category + `:` + value) : ``"
displays only the first value-point of the serie, combining its category-name and value with a colon, while hiding all other value-points. This expression demonstrates how to selectively display series values using the ValueFormat property. It works as follows:
To enable this behavior, the exHideIfEmpty flag must be included in the serie's ShowValue property. This flag tells the component to hide any value whose expression results in an empty string, allowing for selective display of series values according to your custom logic.
Currently, the Exontrol's built-in HTML format supports the following HTML tags:
The ExButton, ExComboBox, ExG2antt, ExGantt, ExGrid, ExHTML, ExLabel, ExList, ExOrgChart, ExplorerTree, ExSchedule, ExSurface, ExSwimlane, ExTree controls support expandable HTML captions feature. The expandable-captions allow you to expand(show)/collapse(hide) different information using <a ;exp=> or <a ;e64=> anchor tags. The exp/e64 field of the anchor stores the HTML line/lines to show once the user clicks/collapses/expands the caption.
Any ex-HTML caption can be transformed to an expandable-caption, by inserting the anchor ex-HTML tag. For instance, <solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3 shows the Header in underlined and bold on the first line and Line1, Line2, Line3 on the rest. The show lines is shown instead of Line1, Line2, Line3 once the user clicks the + sign.
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets: