Hi,
I am trying to skip some days inside CategoryDateTimeXAxis but it did not worked.
See screenshot bellow.
Declaration of the axis is following(Please note that i am trying to bind collections of the dates which is property of my ViewModel):
<ig:CategoryDateTimeXAxis Style="{StaticResource CategoryXAxisStyle}" x:Name="xmXAxis" ItemsSource="{Binding XAxisRange}" Label="{}{0:dd MMMM yyyy}" DisplayType="Discrete" Interval="10" DateTimeMemberPath="." >
<ig:CategoryDateTimeXAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideBottom" Visibility="Visible" />
</ig:CategoryDateTimeXAxis.LabelSettings>
</ig:CategoryDateTimeXAxis>
Style used for axis:
<Style x:Key="CategoryXAxisStyle" TargetType="ig:CategoryDateTimeXAxis">
<Setter Property="StrokeThickness" Value="2" />
<Setter Property="Strip" Value="Transparent" />
<Setter Property="Stroke" Value="LightGray" />
<Setter Property="MajorStroke" Value="LightGray" />
<Setter Property="MinorStroke" Value="Transparent" />
<Setter Property="FontSize" Value="4" />
</Style>
Also it would be nice to have only specific dates to be shown. For example only first date on particular month.
Thanks in Advance
Problem solved by hiding existing Axis and adding dummy Axis with the dates that is needed
Thanks
Hello,
I am very glad that you have managed to solve the issue that you were having. You can also use the DisplayType property of the CategoryDateTimeXAxis in order to change the labels that are shown. By setting the property to Discrete one label will be created for each data point, as in the example that you have provided. If you set the DisplayType to Continues, the labels will be displayed in even intervals and you can use the MinimumValue, MaximumValue and Interval properties of the CategoryDateTimeXAxis, in order to set visible labels on the axis. You can read more regarding the DisplayType property here: http://help.infragistics.com/NetAdvantage/WPF/2012.1/CLR4.0/?page=InfragisticsWPF4.Controls.Charts.XamDataChart.v12.1~Infragistics.Controls.Charts.CategoryDateTimeXAxis~DisplayType.html
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
I am just checking if you require any further assistance on the matter.