在新图表中显示记录 [英] Display record in a new chart

查看:71
本文介绍了在新图表中显示记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用devexpress的xtrachart。图表的名称是xrChart1。现在在我的数据库中我有3条记录,请问在显示时如何将第3条记录(图表的条形图/系列)移动/显示到新图表中?例如,其中前两个记录(条形图)的图表和第三个记录(条形图)的第二个图表。

解决方案

如果我理解你的问题正确,degraxpress xtrachart控制没有什么特别之处。你只需要将你的记录拆分为两个,在两个不同的图表上显示它们,比如



 chart1.DataSource = mySource.Take(2); 
chart2.DataSource = mySource.Skip(2);



这里 [ ^ ]了解有关devexpress图表的更多信息。


Hi, i have a xtrachart using devexpress. The name for the chart is xrChart1. Now in my database i have 3 records, may i ask that how can i move/display the 3rd record(the chart's bar/series) into a new chart when display it? For example, a chart for the first two record(bar) in it and a second chart for the 3rd record(bar) in it.

解决方案

If I understand your question correctly, there is nothing special to devexpress xtrachart control. You just need to split your records into two to display them on two different chart like

chart1.DataSource = mySource.Take(2);
chart2.DataSource = mySource.Skip(2);


see here[^] to learn more about devexpress charts.


这篇关于在新图表中显示记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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