Ajax Control ToolkitAjax Control Toolkit Samples & Demos

Ajax contorl toolkit PieChart Demonstration

PieChart Demonstration


PieChart Description

The PieChart control enables you to render a pie chart from one or more PieChartValues. This control is compatible with any browser which supports SVG including Internet Explorer 9 and above.

PieChart Properties

The control above is initialized with this code. The italic properties are optional:

<ajaxToolkit:PieChart ID="pieChart1" runat="server" ChartHeight="300" 
ChartWidth="450" ChartTitle="Widget Production in the world" 
ChartTitleColor="#0E426C"> 
<PieChartValues>
    <ajaxToolkit:PieChartValue Category="United States" Data="45" 
    PieChartValueColor="#6C1E83" PieChartValueStrokeColor="black" />
    <ajaxToolkit:PieChartValue Category="Europe" Data="25" 
    PieChartValueColor="#D08AD9" PieChartValueStrokeColor="black" />
    <ajaxToolkit:PieChartValue Category="Asia" Data="17" 
    PieChartValueColor="#6586A7" PieChartValueStrokeColor="black" />
    <ajaxToolkit:PieChartValue Category="Australia" Data="13" 
    PieChartValueColor="#0E426C" PieChartValueStrokeColor="black" />
</PieChartValues>
</ajaxToolkit:PieChart >
    
PieChart Properties
  • ChartHeight - This property enables you to customize the height of the chart.
  • ChartWidth - This property enables you to customize the width of the chart.
  • ChartTitle - This property enables you to set the title of the chart.
  • ChartTitleColor - This property enables you to set the font color of the chart title.

PieChartValue Properties:
  • Category - This property is required and provides name for a particular PieChartValue.
  • Data - This property is required and provides Data for a particular PieChartValue.
  • PieChartValueColor - This property enables you to set the color of segment for a particular PieChartValue.
  • PieChartValueStrokeColor - This property enables you to set the stroke color of segment for a particular PieChartValue.

Ajax control toolkit PieChart example with demo in asp .net

In this asp .net tuotiral you will learn about ajax control toolkit PieChart,ajax control toolkit PieChart Extender,ajax control toolkit pie chart sample,ajax control toolkit PieChart Demo,ajax control toolkit PieChart with database,ajax control toolkit PieChart tutorial