Stock Charts in C++

2019-04-14 22:09发布

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!

标签: c++ charts
4条回答
再贱就再见
2楼-- · 2019-04-14 22:25

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).

查看更多
Anthone
3楼-- · 2019-04-14 22:32

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

查看更多
甜甜的少女心
4楼-- · 2019-04-14 22:32

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.

查看更多
成全新的幸福
5楼-- · 2019-04-14 22:37

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.

查看更多
登录 后发表回答