Key Style

A pie chart can have a key that indicates what each slice of the represents (as a value, percentage, label, or a combination of the three). The type of information that is displayed on the key is defined via the Key Style setting. Typically, you would set the Key Style on the Pie Chart Properties window. However, you can animate the Key Style is required.

You can animate the Key Style so that the key is in a specific style or so that it changes according to the value or state of an object in the database. There are several key styles and the numbers you need for the expressions are:

Number for Expression Key Style

0

Label Only

1

Value Only

2

Percentage Only

3

Label and Value

4

Label and Percentage

5

Value and Percentage

6

Label, Value, and Percentage

For example:

IIF( ".1 Bit Digital.AlarmState" = 4, 6, 0 )

This expression means that if the point named '1 Bit Digital' has an alarm state of 4 (that is, has an unacknowledged uncleared alarm), the key shows the label, value, and percentage (Key Style is 6). If the point has any other alarm state, the key only shows the label (the Key Style is 0).


Disclaimer

Geo SCADA Expert 2022