views:

740

answers:

4

I am trying to create some charts of data (eg http://www.amibroker.com/). Is there a C++ library that can do this without a lot of extra work? I'm thinking Qt or wxWindows would have something like it, but it wasn't immediately obvious.

Thanks!

+2  A: 

I think you need to pick your GUI framework first, then find a charting control for the given framework, since that affects what charting controls you could feasibly use. For example, must this be portable?

For the project I'm working on (a large MFC application) we use Cedric Moonen's ChartCtrl. We've had a pretty good experience with it so far.

Nick Meyer
+2  A: 

Qwt does at least some of the things you are trying to achieve (basic plots, bar charts and so on), and integrates well with Qt.

Kristian
A: 

I've done some graph plotting with gnuplot lately, which is quite powerful. Although I think it is Linux only, which may or may not be a problem.

Also, believe it or not, some amazing things can be done with LaTeX. I've used the tkz (tikz) library to produce some awesome graphs.

Both solutions plot to a file which you can include in your interface.

They aren't C++ libraries but you can easily create the datafiles and call the necessary programs from within your C++ program (Being creative with system() and possible some shell scripts).

NomeN
gnuplot is available for Windows.
bltxd
+1  A: 

FLTK is a light and portable C++ toolkit for GUI. There's a chart class. Sample.

anno