简体   繁体   English

C ++如何使用WTL绘制折线图?

[英]C++ how to draw line chart using WTL?

I am new to C++ and WTL, does WTL provide good API's to display line (stacked area, column) charts? 我是C ++和WTL的新手,WTL是否提供良好的API来显示折线图(堆积面积,柱形图)? Or do we need to use 3rd party library to integrate the same with our existing C++ code? 还是我们需要使用3rd party库将其与我们现有的C ++代码集成在一起? It would be great if i can some pointers to examples .....i am looking for very basic line 2D chart. 如果我能为示例提供一些指导.....我正在寻找非常基本的2D折线图,那就太好了。 The application is written in C++ and use WTL for some of the GUI components .....and platform is windows 该应用程序是用C ++编写的,并且对某些GUI组件使用WTL。

Thanks in Advance 提前致谢

WTL provides you with some classes that wrap GDI API and handles, so you can obviously paint variety of charts, you are just going to do it right from scratch. WTL为您提供了一些包装GDI API和句柄的类,因此您显然可以绘制各种图表,而只是从头开始就可以完成。 That is, dissecting your client area into chart area, legend, axis and son on. 也就是说,将您的客户区域分解为图表区域,图例,轴和子区域。 If you were looking for a solution ot use of of the box, WTL does not have anything close. 如果您正在寻找使用该包装盒的解决方案,那么WTL没有什么可以解决的。 You can certainly integrate third party libraries, ActiveX controls, or even Google Chart Tools hosted by IE ActiveX control on your window, where you pass data synthesizing JS script on runtime. 您当然可以在窗口上集成第三方库,ActiveX控件,甚至是由IE ActiveX控件托管的Google Chart Tools ,在其中传递运行时合成JS脚本的数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM