ASP.Net 4.0 - Chart Control: Getting Started
Note Microsoft introduced a new
control (chart) from ASP.Net 4.0 version.
Chart control can be of following types:
1. Line
2. Bar
3. Pie etc and a lot more......
In this section we will only concentrate on the above mentioned 3 chart types.
This guide presents the following to quickly get you up and running with the Chart
Diagram (Bar, Line and Pie):
Overview
A chart control have 2 most important attributes:
1. Series: The Series collection contains the data-points for one or more data-series. Basically for each line in the chart
(consisting of multiple data-points), one series of data is required. Each series can have its own ChartType.
1. Series: The Series collection contains the data-points for one or more data-series. Basically for each line in the chart
(consisting of multiple data-points), one series of data is required. Each series can have its own ChartType.
2. ChartAreas: The ChartArea collection can have one or more configurations which
controls the rendering of a chart.
A chart must have a chart area.
A chart must have a chart area.
Our System
We will going to generate the following charts today:
Key Concept
You can create a chart diagram by following the below steps:
- First of all Drag a Chart control on the default page from toolbox.
It will perform the following changes: a. It will add some handlers, appkeys and axd file in web.config: b. Now your web page will have the chart control :
- Now declare the chart type and bind the chart control with a datatable or dataset
from the code behind:
By, Akash Roy, CEO, JPR Infoserve, http://jprinfoserve.com
No comments:
Post a Comment