views:

487

answers:

4

Can I draw a bar chart using C# ? Do I want to use separate library for that? Thank you.

+1  A: 

You can use the MS Charting Controls provided by Microsoft.

You should start accepting more answers as well.

Oded
Can I use Ms Charting controls for windows form application?If so where can I find good tutorials as I am a beginner in this subject?
C. Karunarathne
@C. Karunarathne - Yes, you can. They work with winforms, webforms and WPF. There are samples with the download.
Oded
+1  A: 

You can also check ZedGraph

npinti
+1  A: 

Check out DundasCharts. This library is paid, but it's worth it.

n535
+1  A: 

As npinti suggests, I would also recommend ZedGraph

Here you have a lot of examples of barcharts you can draw with ZG:
http://zedgraph.org/wiki/index.php?title=Bar_Charts

Here is also a quite useful explanation on various display settings
http://zedgraph.org/wiki/index.php?title=How_is_BarItem_affected_by_AxisType%3F

ZedGraph provides not only the drawing/charting routines, but also basic interactivity (zooming, checking values of the points etc.) and useful operations (saving in various formats, printing, copying to clipboard).

And some simple example:

alt text

Gacek