Sign in to follow this  
foxars

visual c# express graph (chart)

Recommended Posts

The easy way:

Use some ready-made charting component library, plonk a chart control into your form, and set it's data source to be from your database; that's it.

The hard way:

The data in your database table is effectively an array of records. With an ADO.net data adapter, it is easy to iterate over database records as an actual typed array - just draw some boxes, lines or pie segments that represent whatever quantity of the records you want to chart.

You can also use a recordset object to "manually" query the table, but I find the data adapter objects generally more convenient to use.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this