Pie Chart Widget
A Pie chart widget based on the g2plot library. Can be changed to a Donut Chart from the Configurator.
Usage
Allows displaying of category data with Value. The value in LabelField must be a unique string or number. The values can be used to formatted in the Configurator.
Properties
| Property | Type | Binding | Default | Description |
|---|---|---|---|---|
| Data | INFOTABLE | < | Infotable with a column for Label and a column for Value to be displayed on the chart. | |
| LabelField | FIELDNAME | < | Name of the column in the Data infotable specifying the label data. | |
| ValueField | FIELDNAME | < | Name of the column in the Data infotable specifying the value data. | |
| GlobalProperties | JSON | < | A serialized JSON object that has global parameter names as its keys and data types as values. These are properties can be referenced when using expression formatting | |
| DonutInnerLabel | STRING(localized) | < | Name of the inside label of a donut pie chart. | |
| SelectionMode1 | STRING | none | Allows specifying is selection is enabled within the chart. |
Events
| Property | Type | Binding | Description |
|---|---|---|---|
| DoubleClick | EVENT | > | Triggered when the widget is double clicked . |
Expression Format context
When using Expression Format, other relevant fields can also be referenced.
value: STRING | NUMBER | DATETIME - For the label field
globalCtx: TWJSON - Any TWX value declared on the widget Global Properties and that has a value bound.
ctx: { data: INFOTABLE (entire dataset); row: INFOTABLE row } - Access to the entire dataset and the current row.
Footnotes
-
SelectionMode can have the following values:
None,Single,Multiple↩