aspx:DonutChart
This component displays a donut chart, specifying the value field, such as Opportunity Amount and the label for each donut slice via titleField.
Example:
<aspx:DonutChart runat='server' valueField='Amount' titleField='Name' width='100%' height='300px' dataUrl='/aspx/mypage/piechartdata'>
<legend MaxColumns="2" />
</aspx:DonutChart>
Sample Data:
{
"Name": "category 1",
"Amount": 8
},
{
"Name": "category 2",
"Amount": 6
},
{
"Name": "category 3",
"Amount": 2
}
Properties
| Property | Type | Description |
|---|
| Angle | int | |
| BalloonText | string | Text displayed when the mouse hovers over the graph |
| LabelText | string | |
| ValueField | string | |
| TitleField | string | |
| UrlField | string | Field that contains url to preview the related data |
| Depth3D | int | |
| LabelRadius | int | |
| LabelsEnabled | bool | |
| Colors | string | List of colors - comma-separated |
| Legend | Object | |
| Title | string | Title of the chart |
| DataUrl | string | JSON resource URL |
| DataHttpType | string | GET or POST |
| Width | Pixel unit | Values such as "200px" or "100%" |
| Height | Pixel unit | "300px", do not use percent values for best results.
This is a mandatory property. |