Table of Contents


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

PropertyTypeDescription
Angleint 
BalloonTextstringText displayed when the mouse hovers over the graph
LabelTextstring 
ValueFieldstring 
TitleFieldstring 
UrlFieldstringField that contains url to preview the related data
Depth3Dint 
LabelRadiusint 
LabelsEnabledbool 
ColorsstringList of colors - comma-separated
LegendObject 
TitlestringTitle of the chart
DataUrlstringJSON resource URL
DataHttpTypestringGET or POST
WidthPixel unitValues such as "200px" or "100%"
HeightPixel unit"300px", do not use percent values for best results.
This is a mandatory property.