如何使用Winsample图表控件绘制图形 [英] how to plot graph using winsample chart control

查看:102
本文介绍了如何使用Winsample图表控件绘制图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友,

在我的项目中,数组中的x和y值很少,我想在c#中绘制非线性最佳拟合曲线,以便任何人都可以帮助我如何向图表中添加数据.

我想要完整的代码.如何创建数据源或如何将数据绑定到图表控件.我已经下载了win-sample图表控件,但没有获得如何向图表中添加数据的方法.

如果您有其他任何想法,请给我.

请帮助我.....谢谢

Hello friends,

In my project there are few values of x & y in an array & I want to draw a nonlinear best fit curve in c# so any one can help me how to add data to chart.

I want whole code for it. How to create data source or how to bind data to chart control. I have downloaded win-sample chart control but not getting how to add data to chart.

If you have any other idea please give me.

plz help me..... thanks

推荐答案

就将数据绑定到图表而言,请参见简化的贝塞尔曲线 [
As far as binding data to the chart is concerned, see How to add data in winsample chart control[^] from a similar previous question.

There is an article here on The Code Project for Bezier Curves Bezier Curves Made Simple[^], which may give you some ideas if nothing else.

A quick search has revealed several libraries that claim to implement non-linear curves. I can only suggest that you search for yourself and have a look at some of them.


这篇关于如何使用Winsample图表控件绘制图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆