如何关闭 Telerik 图表控件的空值近似

发布于 2024-09-18 01:04:41 字数 177 浏览 9 评论 0原文

我正在使用 Telerik rad 图表控件创建基于日期的数据的条形图。 x 轴显示每个数据点的日期。 y 轴显示一些总数。

当我的数据源中没有特定日期的数据时,图表仍显示日期,但没有条形图。

我认为这属于“空序列近似”功能。有什么办法可以关掉这个功能吗?需要设置一些属性或属性组合?

谢谢。

I am using the Telerik rad chart control to create a bar chart of date-based data. The x-axis shows the date for each data point. The y-axis shows some total.

When there is no data in my datasource for a particular date, the chart is still showing a date, but no bar.

I think this falls under the "empty series approximation" functionality. Is there any way of turning this off? Some property or combination of properties that need to be set?

Thank you.

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

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

发布评论

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

评论(1

愁杀 2024-09-25 01:04:41

实现此目的的一种方法是在 SeriesMapping 中使用 xcategories 而不是 xvalues。检查示例:

  <TelerikChart:SeriesMapping.ItemMappings>
         <telerik:ItemMapping FieldName="Value" DataPointMember="YValue" />
         <telerik:ItemMapping FieldName="Date" DataPointMember="XCategory" />
   </TelerikChart:SeriesMapping.ItemMappings>

我希望它有所帮助。

One way of doing this is using xcategories instead of xvalues in your SeriesMapping. Check the sample:

  <TelerikChart:SeriesMapping.ItemMappings>
         <telerik:ItemMapping FieldName="Value" DataPointMember="YValue" />
         <telerik:ItemMapping FieldName="Date" DataPointMember="XCategory" />
   </TelerikChart:SeriesMapping.ItemMappings>

I hope it helps.

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