gpt4 book ai didi

c# - 在 OxyPlot 线系列中添加间隙

转载 作者:行者123 更新时间:2023-12-03 23:40:56 26 4
gpt4 key购买 nike

我在 Xamarin 表单应用程序中使用 OxyPlot。在一个线条系列中可能会丢失数据,我需要在线条中留出一个间隙来指示丢失的数据。

这是我想要实现的示例:

Plot created with flot in javascript. Show "hole" in values

如何创建包含这样一个间隙的图表?

最佳答案

我找到了解决方案。通过在数据点中添加 Double.NaN 值,就会创建孔。

new DataPoint(15, Double.NaN)

关于c# - 在 OxyPlot 线系列中添加间隙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39873077/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com