Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

MajorUnit not working properly on XAxis for IsTime

$
0
0

Hi all,

When I set the MajorUnit to 7 days, the first Major Unit tick mark shows up too early from the first start point in the chart on the left edge of the chart. Is this a known bug? If so is there a workaround? All the rest of the tick marks are 7 days apart, but the first tick mark throws the whole chart off.

 <c1:C1Chart x:Name="DriverTrendChart" Grid.Column="1" Style="{StaticResource ChartStyle}">
            <c1:C1Chart.View>
                <c1:ChartView x:Name="ChartView">
                    <c1:ChartView.AxisX>
                        <c1:Axis 
                            AutoMin="False"
                            AutoMax="False"
                            
                            Min="{Binding StartDate, Converter={StaticResource UtcToLocalTimeConverter},  ConverterParameter=OADate}" 
                            Max="{Binding EndDate, Converter={StaticResource UtcToLocalTimeConverter},  ConverterParameter=OADate}" 
                            MajorUnit="{Binding MajorUnit}" AnnoCreated="Axis_AnnoCreated" 
                            Style="{StaticResource AxisXStyle}">
                            <c1:Axis.AxisLine>
                                <Line  Loaded="Line_Loaded" StrokeThickness="0"/>
                            </c1:Axis.AxisLine>
                        </c1:Axis>
                    </c1:ChartView.AxisX>

Here is the style:


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>