C# Bar Chart
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 tablename and column name for which you want to create bar chart.Populate anarray from data in the specified data column then using that data toplot a bar chart using GDI+ graphics library provided in the .netframework.
In order to run thisprogram seply specify the database path in the getData function andspecify the dataColumnName and tableName in the function call from theOnPaint function or use the database provided with this sample .if youare using database provided with this sample then only specify the pathof the database in the getData function in the variable dataConn .(DataSource )
This is a simple example of my early phaseproject. Actually i am working on a graph plotting project which plotall the graphs like in Excel and that must be error free and fullyobject oriented.
Anybody want my project email me at shasanadil@hotmail.com
Download BarChart.zip
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="468" height="60"><param name="movie" value="/banners/Ad2.swf?clickTAG=http://www.red-gate.com/products/ants_profiler/index.htm?utm_source=chelp%26utm_medium=banner%26utm_content=vsmenu%26utm_campaign=antsprofiler" /><param name="quality" value="high" /> <embed src="http://www.csharphelp.com/banners/Ad2.swf?clickTAG=http://www.red-gate.com/products/ants_profiler/index.htm?utm_source=chelp%26utm_medium=banner%26utm_content=vsmenu%26utm_campaign=antsprofiler" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="468" height="60"></embed> </object>




16. Jul, 2006 by 







No comments yet... Be the first to leave a reply!