OXYPLOT:如何在TrackErformatstring中计算?
我尝试创建一个线段系列,其中不仅应在跟踪器中显示x-和y值,而且还应显示一个属性:
var series = new LineSeries {TrackerFormatString = "X:{2}\nY:{4}\nZ:{2*(1-4)}"};
series.Points.AddRange(...);
我希望另一个属性z =(1-y) * x
是显示在跟踪器的第三行中。怎么可能?
I try to create a line series where not only x- and y-values shall be displayed in the tracker, but one more property:
var series = new LineSeries {TrackerFormatString = "X:{2}\nY:{4}\nZ:{2*(1-4)}"};
series.Points.AddRange(...);
I want another property Z = (1-Y) * X
to be displayed in the third row of the tracker. How is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过创建自定义
,然后将其添加到系列中:
请注意,您需要使用
itemssource
属性。您不能简单地使用series.point.Addrange(...)
添加点。It is possible by creating a custom
And then add it to the series:
Note that you need to use the
ItemsSource
property. You cannot simply add points withseries.Point.AddRange(...)
.