Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
UltraChart - Pie Chart
posted

Hi,

Im new for Infragistics product.

I have created a new webapplication and tried to display a PIE chart with some hard coded values. Below is the code.

  <igchart:UltraChart runat="server" ID="pieChart" 
                        BackColor="White" Height="150px" Width="200px" ChartType="PieChart3D"
                        Transform3D-Scale="100" Transform3D-XRotation="7" Transform3D-YRotation="3" Transform3D-ZRotation="-55" >

                        <Tooltips Display="MouseMove" BackColor="Yellow" BorderColor="Black" Format="Custom"
                        FormatString=" <ITEM_LABEL>: <DATA_VALUE:0> " BorderThickness="0"
                        Font-Names="Arial,Verdana,Helvetica,sans-serif" Font-Size="8" Padding="10" />
                       
                        <Border DrawStyle="Solid" Raised="false" Color="White" Thickness="0" />
                       
                        <DeploymentScenario Scenario="Session" />
                       
                        <PieChart3D OthersCategoryPercent="0" PieThickness="9" RadiusFactor="129">
                            <Labels Visible="False" FormatString="" LeaderLinesVisible="False" BorderColor="White" />
                        </PieChart3D>
                       
                        <Axis>
                            <PE ElementType="None" />
                        </Axis>
                    </igchart:UltraChart>

 

And the CS code is


            NumericSeries series = new NumericSeries();
            pieChart.ChartType = ChartType.PieChart3D;
            series.Points.Add(new NumericDataPoint(10, "Up", false));
            series.Points.Add(new NumericDataPoint(15, "Warning", false));
            series.Points.Add(new NumericDataPoint(20, "Critical", false));
            series.Points.Add(new NumericDataPoint(24, "Down", false));
            series.Points.Add(new NumericDataPoint(15, "Unknown", false));
            series.Points.Add(new NumericDataPoint(1, "Unreachable", false));

            pieChart.Series.Add(series);

 

But the Pie is not getting displayed, while running the application, Please correct me where i did a mistake.

Thanks,

Venu