Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to display FusionPie Chart in csharp Winform
I am taking value from datatable.

I want Fusion Chart(Pie).
Now I am using Zedgraph and my code is
C#
GraphPane myPane = zgc.GraphPane;
            myPane.Border.IsVisible = false;
            myPane.Legend.IsVisible = false;
            
            
            Color color = CreateRandomColor();
                      
            for (int i = 0; i < getCategoryTable().Rows.Count; i++)
            {
                myPane.AddPieSlice(getCategoryCount(Convert.ToInt32(getCategoryTable().Rows[i]["ID"])), color, 0.01, Convert.ToString(getCategoryTable().Rows[i]["categoryname"]));
                
            }

here
C#
getCategoryCount(Convert.ToInt32(getCategoryTable().Rows[i]["ID"])) 

is name to display and
C#
Convert.ToString(getCategoryTable().Rows[i]["categoryname"])


is value associated with it.

instead of this i want fusion pie chart
Please tell me complete process.

Thanks.
Posted
Updated 12-Aug-11 3:14am
v2

1 solution

The "complete" process would go something like this:

0) Install Fusion Charts

1) Change your code to use Fusion objects instead of ZedGraph.

Looks pretty simple to me.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900