我可以将趋势线添加到 RDLC 报告中吗?

发布于 2024-08-28 20:47:10 字数 81 浏览 2 评论 0原文

我有一个基于 WPF 应用程序中使用的自定义数据集的 RDLC 报告。 我有一个带有简单折线图的图表。 有没有办法向此 RDLC 报告添加趋势线?

I have an RDLC report based on custom Data sets used in a WPF application.
I have a Chart with a simple line chart.
IS there a way I can add a trendline to this RDLC report?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

怎言笑 2024-09-04 20:47:10

我最近遇到了这个问题,刚刚解决了。

我的解决方案(可能不是最好的)是使用与数据相同的数据库中的存储过程将“趋势”数据添加到返回的列中。

要执行相同的操作,您需要一些线性回归等知识。这是我从 stackoverflow 此处

您使用的是数据库驱动的数据集还是静态数据集(例如 XML)?
如果您使用的是 SQL Server,我可以粘贴我使用的函数,您可以从中获取您喜欢的内容 =)

I had this problem recently, and just solved it this very minute.

My solution (might not be the best) was to use a stored procedure from the same database as the data to add 'trend' data to the columns returned.

To do the same, you'd need some knowledge of linear regressions, etc. Which I got from stackoverflow here

Are you using a database driven dataset or a static dataset, such as XML?
If you're using SQL Server, I can paste the function I used and you can take from it what you like =)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文