简体   繁体   English

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

[英]Can I add a Trendline to an RDLC report?

I have an RDLC report based on custom Data sets used in a WPF application. 我有一个基于WPF应用程序中使用的自定义数据集的RDLC报告。 I have a Chart with a simple line chart. 我有一个带有简单折线图的图表。 IS there a way I can add a trendline to this RDLC report? 有什么方法可以向该RDLC报告添加趋势线吗?

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 为此,您需要一些线性回归知识,等等。这是我从stackoverflow 那里获得的

Are you using a database driven dataset or a static dataset, such as XML? 您使用的是数据库驱动的数据集还是静态数据集(例如XML)? If you're using SQL Server, I can paste the function I used and you can take from it what you like =) 如果您使用的是SQL Server,则可以粘贴所使用的函数,然后从中获取所需的信息=)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM