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

Issue with Chart with Date in X Axis

1 Answer 20 Views
Chart
This is a migrated thread and some comments may be shown as answers.
JAS J
Top achievements
Rank 1
JAS J asked on 02 Aug 2011, 11:14 PM
Have have a data bound bar chart. in the default view I have the following:

<telerik:SeriesMapping>

<telerik:SeriesMapping.SeriesDefinition>              
<telerik:ChartArea.AxisX>
    <telerik:AxisX IsDateTime="True"  AutoRange="False" MinValue="{Binding PeriodStartOADate}"
        MaxValue="{Binding PeriodEndOADate}"  Visibility="Collapsed"/>
</telerik:ChartArea.AxisX>
<telerik:ChartArea.AxisY>
     <telerik:AxisY Step="0" IsZeroBased="false"/>
</telerik:ChartArea.AxisY>

<telerik:SeriesMapping.SeriesDefinition>

<telerik:SeriesMapping>

The data serries is as follows:
 <telerik:SeriesMapping.ItemMappings>
    <telerik:ItemMapping FieldName="Data1" DataPointMember="YValue" />
    <telerik:ItemMapping FieldName="Period" DataPointMember="XValue" />
</telerik:SeriesMapping.ItemMappings>

The Period XValue in the Series Mapping is DateTime. The AxisX is an OADate.

The min/max period is always from midnight -30 mins the next midnight (ie 24.5 hours)

When the data comes in, even though the XValue Period for the data point is midnight, it always gets rendered at 5:30 AM

See picture.

Any idea what the issue is?

thanks!!





1 Answer, 1 is accepted

Sort by
0
JAS J
Top achievements
Rank 1
answered on 03 Aug 2011, 01:09 AM
Ok, looks like adding the AxisStep helps.
Tags
Chart
Asked by
JAS J
Top achievements
Rank 1
Answers by
JAS J
Top achievements
Rank 1
Share this question
or