图表系列中的总计。 [英] Grand total for a series in a chart.

查看:82
本文介绍了图表系列中的总计。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经能够使用代码找到系列的平均值/平均值:

DataManipulator。 Statistics.Mean

然后将其扔到标签/文本框中。



其他数学函数有类似的东西吗?我正在寻找Sum,Multiplication等。



我尝试过:



I've been able to find the average/mean of a series using the code:
DataManipulator.Statistics.Mean
and then throwing that to a label/text box.

Is there something similar for other math functions? I'm looking for Sum, Multiplication, etc.

What I have tried:


'Determine the mean
Dim mean As Double = Chart1.DataManipulator.Statistics.Mean(inputSeriesName:="ActualWeight")



'Display mean as text
TxtAverageWeight.Text = mean.ToString("N")

推荐答案

一个好的起点是文档 [ ^ ]

考虑是 - 你真的有兴趣在图表中使用它还是只是数据 - 在这种情况下有各种各样的方法可以做你想要的事情
A good place to start is the documentation[^]
The thing to consider is - are you genuinely interested in having this in a chart or is it just data - in which case there are all sorts of ways to do what you want


这篇关于图表系列中的总计。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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