Hi,
We are using the RadChart for Silverlight, Q1, 2010.1.422. We are plotting line series data that is specified at the level of days BUT covers multiple years. For example, we may have 20 or 30 data points spread across 40 years. We manually (in code) specify the XAxis parameters to include the IsDateTime, the LabelStep, MaxValue and MinValue, and Step. Additionally, AutoRange is set to FALSE.
Basically, we recieve some time series data from a web service. We extract the start and end dates and configure the Min and Max values on the X axis accordingly. We also compute the number of labels we will show (LabelStep) and the ~all important~ Step value.We were setting the Step value in multiples of 365 (i.e. in multiples of a year but specified in Days) as we have a broad range (years) between the data points. However, the labels were always off. We would get, for example, 1990, 1991, 1992, 1993, 1993. Turning on the day and month on the label shows why - we would get 1/1/1990, 1/1/1991, 1/1/1992, 1/1/1993, 12/31/1993, ..... The labels start moving back to the last day of the previous year.
Okay - so, clearly "365" is not quite right as a "Step" - allright, so you say, a ha - there are "365.25" days per year so let's set the Step value to be multiples of ~that~...well...it's a little bit better. Now, we can go about 10 or 20 years before the X Axis labels are off. Similar fiddling with the Step value (365.3, 365.4, etc.) produced similar results - labels are good initially but ultimately end up wrong. There does not seem to be a "right" Step value.
This is pretty frustrating. It seems that the ~only~ Step that actually works for DateTime is multiples of years or days when the timespan of the dataset is "narrow". I can see how, say months can be problematic given that there length can change with leap year but even that seems hardly insurmountable, and days per year are very regular (otherwise our calendars would fall apart) - 365, 365.25, or whatever level of precision RadChart requires.
Personally, I think this is a bug but I'm willing to give Telerik the benefit of the doubt until I hear back on this issue. There should be a specific, documented constant step value that works in these cases.
We are using the RadChart for Silverlight, Q1, 2010.1.422. We are plotting line series data that is specified at the level of days BUT covers multiple years. For example, we may have 20 or 30 data points spread across 40 years. We manually (in code) specify the XAxis parameters to include the IsDateTime, the LabelStep, MaxValue and MinValue, and Step. Additionally, AutoRange is set to FALSE.
Basically, we recieve some time series data from a web service. We extract the start and end dates and configure the Min and Max values on the X axis accordingly. We also compute the number of labels we will show (LabelStep) and the ~all important~ Step value.We were setting the Step value in multiples of 365 (i.e. in multiples of a year but specified in Days) as we have a broad range (years) between the data points. However, the labels were always off. We would get, for example, 1990, 1991, 1992, 1993, 1993. Turning on the day and month on the label shows why - we would get 1/1/1990, 1/1/1991, 1/1/1992, 1/1/1993, 12/31/1993, ..... The labels start moving back to the last day of the previous year.
Okay - so, clearly "365" is not quite right as a "Step" - allright, so you say, a ha - there are "365.25" days per year so let's set the Step value to be multiples of ~that~...well...it's a little bit better. Now, we can go about 10 or 20 years before the X Axis labels are off. Similar fiddling with the Step value (365.3, 365.4, etc.) produced similar results - labels are good initially but ultimately end up wrong. There does not seem to be a "right" Step value.
This is pretty frustrating. It seems that the ~only~ Step that actually works for DateTime is multiples of years or days when the timespan of the dataset is "narrow". I can see how, say months can be problematic given that there length can change with leap year but even that seems hardly insurmountable, and days per year are very regular (otherwise our calendars would fall apart) - 365, 365.25, or whatever level of precision RadChart requires.
Personally, I think this is a bug but I'm willing to give Telerik the benefit of the doubt until I hear back on this issue. There should be a specific, documented constant step value that works in these cases.