Table of Contents


aspx:PieChart

This component displays a pie chart using data.

 

Example:

<aspx:PieChart runat='server' valueField='Amount' titleField='Name' width='100%' height='300px' dataUrl='/aspx/mypage/piechartdata'>
   <legend MaxColumns="2" />
</aspx:PieChart>


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.
Visiblebool