Hi friend ,today we will learn about bar chart control in asp.net.Here you can easily display the bar char with the help of some predefined data of different persons for different years.Here we will display the different type of data of Ram,Mohan and Neha for different years (2001-2008) in this bar chart.Before implementing this concepts, you have to install ajax toolkit in your visual studio.
There are some properties of this BarChart as given below:-
There are some properties of this BarChart as given below:-
- ChartHeight :- This is helpful to customize the height of the bar chart.
- ChartWidth :- This is helpful to customize the width of the bar chart.
- ChartType :- This is helpful to view the bar chart either column(StakedColumn) or Row(Bar,Stackedbar)
- ChartTitle:- This is used to set the title of the bar chart.
- CategoryAxis:- Here you have to put some set of values to create a bar chart .
- ValueAxisLines:-Here you have to set the interval size for the value axis line.
- ChartTitleColor:-This is used to set the color of your chart title.
- CategoryAxisLineColor:-This is helpful to set the color of the category axis line.
- BaseLineColor:-This is helpful to set the color of the base lines of the chart.
- ValueAxisLineColor:- This is helpful to set the color of the value axis lines
- Name:-This is a required property.
- BarColor:- This is helpful to set the color of the bar for a particular series.
- Data:- This property is used to set the data for a particular series.