开发者

how to turn off empty value approximation for Telerik chart controls

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 fo开发者_如何学编程r 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜