如何从值数组创建折线图? [英] How To Create A Line Chart From Array Of Values?

查看:83
本文介绍了如何从值数组创建折线图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在图表上添加一行值

i want to add line with values on chart

该怎么做

我的数组值{10 ,20,30 .....}

my array value {10,20,30.....}

推荐答案

这将仅用一行代码将数组中的所有数据绑定到图表:

This will bind all your data from the array to the chart in only one line of code:

chart1.Series[0].Points.DataBindY(insertYourArrayHere);

这篇关于如何从值数组创建折线图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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