如何将图表绑定到arraylist(devexpress winforms) [英] how to bind a chart to an arraylist (devexpress winforms)

查看:91
本文介绍了如何将图表绑定到arraylist(devexpress winforms)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在如何阅读:将图表绑定到数组列表中阅读了文档,但是在绑定图表时仍然存在问题到一个数组列表.


在本例中,我需要显示消息类型与消息到达时间(以毫秒为单位),而不是文档中的示例.

我需要x轴作为到达时间的比例(两倍),图例应该分开显示,并根据消息的类型(字符串)显示消息.因此,如果我有两个相同类型的消息实例,则应该以相同的颜色看到这两个实例.顺便说一句,我正在使用条形图.

条的长度(y轴)取决于消息类型的重要性的另一个标准. (根据重要性的不同,它们可以是1,2,3或4).


我的数组列表是这样的:

Hi,


I read the documentation at How to: Bind a Chart to an Array List but i still have a problem about binding a chart to an arraylist.


Instead of the example in the documentation, in my case i need to show the message types vs message arrival time (in milisecs).

I need my x-axis as the arrival time scale (double) and the legend should seperate and show the messages depending on their types (string). So if I have two instances of same kind of message , i should see the two in the same color. By the way, i am using a bar chart.

The length of the bars (y-axis) depends on another criteria which is importance of the message types. (they could be 1,2,3 or 4 depending on their importance).


My arraylist is like this:

messageArrayList.Add(new Record(string messageType, double arrivalTimeInMilisecs, int importanceOfTheMessage));





Could you please help me?

推荐答案

了解和学习DevExpress控件的正确位置是:
DevExpress网站&论坛 [^ ]

我发现与第三者有关的特定问题可以在各自的论坛中得到更快,更准确的回答.
Correct place for understanding and learning about DevExpress Controls is:
DevExpress Website & Forum[^]

I had found that specific questions related to 3rd party is answered more quickly and accurately at respective forums.


这篇关于如何将图表绑定到arraylist(devexpress winforms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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