Blog

Creating a Chart on ASP. NET 4.0

Posted by Pranav Kumar Sharma Blogs | ASP.NET Controls in C# May 01, 2012
Creating a chart using asp.net 4.0 to increase the efficiency of analysis for an organization.It is a control of asp.net.

       Creating a Chart on ASP. NET 4.0

Steps of Creating a Chart

Step 1: Open  Microsoft Visual Studio 4.0

Step2: Select File->>New ->>Website

1.jpg

Step3: Select ASP. NET Empty Web Site

2.jpg

Step4: Add New Item

4.jpg

Step5: Select Item Web Form

5.jpg

Step6 : Drag the chart from data from the toolbox to the design form and drop there.

Choose your graph like pie , column , bubble etc.

Here for example we take a Column Chart.

6.jpg

Step 7: Go to a source panel of a chart and write a coding there as per requirement.

For example the code is given below

Here is the code using Script:

<body>

    <form id="form1" runat="server">

    <div<asp:DataPoint AxisLabel="Information Technology" YValues="50" />

                                                <asp:DataPoint AxisLabel="Computer Science" YValues="15" />

                                                <asp:DataPoint AxisLabel="Mechanical " YValues="30" />

                                                <asp:DataPoint AxisLabel="Electronics" YValues="40" />

                                    </Points>

                        </asp:Series>

            </Series>

            <ChartAreas>

                        <asp:ChartArea Name="ChartArea">

                        </asp:ChartArea>

            </ChartAreas>

</asp:Chart>

    </div>

    </form>

</body>

 

The output of the code is give below:

 

.7.jpg

 

 

Conclusion:

 

As the Chart is a good approach to understand the organization. So it is an important tool to implement in the project. To make the analysis of an organization effective. 

post comment
     

Dear Pranav Kumar Sharma, Please tell me how to create pie chart in asp.net 4.0 ?

Posted by Vineet Kumar Saini Dec 12, 2012
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Join a Chapter
More Blogs from this Blogger
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.