By Syed Hasan Adil
A simple bar chart creater using data from Access database . It consist of two function
1)private void getData(string dataColumnName,string tableName)
2)overidden base function OnPaint()
The getData function simply takes the table name and column name for which you want to create bar chart.Populate an array from data in the specified data column then using that data to plot a bar chart using GDI+ graphics library provided in the .net framework.
In order to run this program seply specify the database path in the getData function and specify the dataColumnName and tableName in the function call from the OnPaint function or use the database provided with this sample .if you are using database provided with this sample then only specify the path of the database in the getData function in the variable dataConn .(Data Source )
This is a simple example of my early phase project. Actually i am working on a graph plotting project which plot all the graphs like in Excel and that must be error free and fully object oriented.
Anybody want my project email me at shasanadil@hotmail.com
Download BarChart.zip