문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top