Creating a Chart on ASP. NET 4.0

By Pranav Kumar Sharma 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. 

COMMENT USING

PREMIUM SPONSORS

Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs