SliceClickedEventArgs Class
Definition
Provides data for pie/donut slice click events.
public class SliceClickedEventArgs
Constructors
| Name | Description |
|---|---|
| SliceClickedEventArgs | Creates a new instance of SliceClickedEventArgs. |
SliceClickedEventArgs Constructor
Creates a new instance of SliceClickedEventArgs.
public SliceClickedEventArgs(int sliceIndex, string label, double value, double percentage, object dataItem)
Parameters
sliceIndex int
label string
value double
percentage double
dataItem object
Properties
| Name | Description |
|---|---|
| DataItem | Gets the original data item if available. |
| Label | Gets the label of the clicked slice. |
| Percentage | Gets the percentage of the total that this slice represents. |
| SliceIndex | Gets the index of the clicked slice. |
| Value | Gets the value of the clicked slice. |
DataItem Property
Gets the original data item if available.
public object DataItem { get; set; }
Label Property
Gets the label of the clicked slice.
public string Label { get; set; }
Percentage Property
Gets the percentage of the total that this slice represents.
public double Percentage { get; set; }
SliceIndex Property
Gets the index of the clicked slice.
public int SliceIndex { get; set; }
Value Property
Gets the value of the clicked slice.
public double Value { get; set; }