This is a migrated thread and some comments may be shown as answers.

Populating X axis issue

1 Answer 68 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 23 Apr 2009, 04:24 PM
Hi -

I'm populating a barseries with code that looks like this:

 

foreach(var week in auditstats)

 

{

barSeries.Add(

new DataPoint() { XValue = week.Week, YValue = week.AuditCount });

 

}

The x is calendar week and the y is a number.  The problem comes when a week is missing from the underlying data.  When all the weeks are represented I get an x axis that looks like this:  15   16    17

But when week 16 is missing I get an x axis that looks like this:  15     16.5

How can I fix this so that I get eiher only the data from the underlying set (15, 17) or get all the weeks whether or not they're in the underlying data (15, 16, 17)?

1 Answer, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 27 Apr 2009, 09:45 AM
Hello Matt,

The problem you are describing could be solved by a feature of RadChart which we call "strict mode". Unfortunately the first version of RadChart we shipped does not support this yet. It is a highly requested feature and we will do our best to include it in Q2 release.

Greetings,
Vladimir Milev
Tags
Chart
Asked by
Matt
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Share this question
or