Flex LineSeries interpolateValues 为零?

发布于 2024-08-18 10:32:19 字数 188 浏览 2 评论 0原文

在 Flex 的 LineChart 中,您可以将 LineSeries 设置为 interpolateValues="true" ,这样做的作用是连接缺失的值,这样您的线条中就不会出现间隙。但我想要的是它为缺失的字段插入 0,而不是绘制一条直接的线来填补空白。

有没有办法设置它来做到这一点?

谢谢!!

In a LineChart in Flex you can set a LineSeries to interpolateValues="true" what this does is connect missing values so you do not have gaps in your line. But what I would like is for it to insert 0's for the missing fields instead of drawing a direct line to fill the gap.

Is there a way to set it to do that?

Thanks!!

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

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

发布评论

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

评论(1

踏雪无痕 2024-08-25 10:32:19

我不认为你可以,插值是猜测你的数据点可能是什么的一种方法。我认为 DataProvider 上的快速函数可以用 0 填充空白,然后您就不必搞乱插值了。

I don't think that you can, interpolate is a way of guessing what your data point might have been. I think a quick function on your DataProvider could fill in the gaps with 0s though, and then you wouldn't have to mess with interpolation.

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