问题描述
我在如何阅读:将图表绑定到数组列表中阅读了文档,但是在绑定图表时仍然存在问题到一个数组列表.
在本例中,我需要显示消息类型与消息到达时间(以毫秒为单位),而不是文档中的示例.
我需要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?
推荐答案
这篇关于如何将图表绑定到arraylist(devexpress winforms)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!