x = XamDoughnutChart("Identifier").GetSliceValue “Sales”
msgbox x
This topic provides information about the xamDoughnutChart™ control’s testable user replay-only methods.
This topic contains the following sections:
The following table briefly describes the replay-only method for testing the control.
This replay action returns the numerical value of the selected slice of the xamDoughnutChart control.
The following table describes the method’s parameter followed by code example.
The following script Returns the value of the “Sales” slice of the doughnut chart on the inner-most ring.
x = XamDoughnutChart("Identifier").GetSliceValue “Sales”
msgbox x
The following is the list of possible exceptions to the method and the likely reason causing them.
The specified XamDoughnut Ring index [{1}] is out of range
The specified XamDoughnut Slice index [{1}] is out of range
The following XamDoughnut Slice [{1}] key was not found
Argument [{0}] is formatted incorrectly format must be
[int SliceIndex | string SliceLabel | ARRAY ( int RingIndex, { int SliceIndex | string SliceLabel} )]
This replay action returns the visible slice count of the supplied ring of the xamDoughnutChart control.
The following table explains the method’s parameter followed by code example.
Returns the number of visible slices for the inner most ring.
x = …XamDoughnutChart("Identifier").GetRingSliceCount 0
msgbox x
The reason of exception returned from this action is that the specified XamDoughnut Ring index [{1}] is out of range.
This action returns a delimited string of all labels of a given ring of the xamDoughnutChart control.
The following table explains the method’s parameter followed by code example.
Returns a delimited string of labels for the visible slices of the inner-most ring.
x = …XamDoughnutChart("Identifier").GetRingSliceLabels 0
msgbox x
The reason of exception returned from this action is that the specified XamDoughnut Ring index [{1}] is out of range.
The following topics provide additional information related to this topic.