Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hi all,

i want to use Bar chart and pie chart controls in my application
for generating reports and i am using visual studio 2005 (frame work 2.0).
so, pls help me that how to this controls and where from i can get.
because these controls are not available in toolbox.


Thanks,
Raj
Posted
Comments
[no name] 2-May-13 7:58am    
Did you google "chart control"?

use this link its vary use full
http://www.fusioncharts.com/products/suite/?gclid=CIm6qcDLg7gCFawF4godkgsAZg[^]
Imran Parvez
Manager(IT)
MCPD, MCTS
Bhopal
 
Share this answer
 
v4
Hi Raj,
Use this code with using fusion library:-
VB
Dim pieChart As New FusionPieChart()
       pieChart.showNames = True
       pieChart.showPercentageInLabel = True
       pieChart.showPercentageValues = False
       Dim chartHtml As String = pieChart.CreateSetElement(BuildData(), FusionPieChart.Pie3D, divPieChart.ClientID, "name", "value", "text", _
        "id", "test.aspx?id=", True, 600, 400)
       divPieChart.InnerHtml = chartHtml

       Dim lineChart As New FusionLineChart()
      
       chartHtml = lineChart.CreateSetElement(BuildData(), FusionLineChart.Line2D, divLineChart.ClientID, False, "", "name", _
        "value", "text", "id", "", True, 600, _
        400)
       divLineChart.InnerHtml = chartHtml



Imran Parvez
Manager(IT)
MCPD, MCTS
Bhopal
 
Share this answer
 
v2
C# Solution
protected void btnShow_Click(object sender, EventArgs e)
{
FusionPieChart pieChart = new FusionPieChart();
pieChart.showNames = true;
pieChart.showPercentageInLabel = true;
pieChart.showPercentageValues = false;
string chartHtml = pieChart.CreateSetElement(BuildData(), FusionPieChart.Pie3D,
divPieChart.ClientID, "name", "value",
"text", "id", "test.aspx?id=", true, 600, 400);
divPieChart.InnerHtml = chartHtml;

FusionLineChart lineChart = new FusionLineChart();
//chartHtml = lineChart.CreateSetElememtForTrendChart(BuildData(),
divLineChart.ClientID, "name", "value", 100, 100);
chartHtml = lineChart.CreateSetElement(BuildData(), FusionLineChart.Line2D,
divLineChart.ClientID, false, "", "name",
"value", "text", "id", "", true, 600, 400);
divLineChart.InnerHtml = chartHtml;
}

Imran Parvez
Manager(IT)
MCPD, MCTS
Bhopal
 
Share this answer
 
http://www.codeproject.com/Articles/463284/Create-Pie-Chart-Using-Graphics-in-Csharp-NET

may be you can get help from above link.
 
Share this answer
 
http://visifire.com/silverlight_bar_charts_gallery.php
http://visifire.com/silverlight_2d_column_charts_gallery.php
http://visifire.com/silverlight_pie_doughnut_charts_gallery.php
 
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