动态更改图表数据 [英] Change chart data on the fly

查看:61
本文介绍了动态更改图表数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想动态更改图表数据。这是一个winform,我使用数据源作为数据源。我重新查询数据并使用以下内容:


me.myChart.Datasource = dtChart


me.myChart.Update()


但它继续显示旧数据集。我做错了什么?


TIA,


John

解决方案

< blockquote>尝试 me.myChart.DataBind()


I want to change the chart data on the fly. This is a winform and I am using a datatable for the datasource. I requery the data and use the following:

me.myChart.Datasource = dtChart

me.myChart.Update()

But it continues to display the old data set. What am I doing wrong?

TIA,

John

解决方案

Try me.myChart.DataBind()


这篇关于动态更改图表数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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