Hi,
I am using a xamTimeLine (v12.2) to display date and time information. I was wondering if it’s possible to show major tick marks for days and minor tick marks (including the labels) for the hours. My timeline shows data for roughly 4 days and it’s hard to tell which day I’m looking at. I can only get it to show either the date or the time, but not both simultaneously.
Thanks
Hello,
I have been looking through your post and it seems that currently displaying labels for the minor stroke is not available functionality. The UnitType property of the DateTimeAxis determine which value type is shown as label - years, days, hours, etc. This means that showing major tick marks' labels for days and minor tick marks' labels for hours is not supporsted. I have logged this as a new product idea. I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI13040035.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Please feel free to let me know if you have any questions.
Hi Maria,
That’s unfortunate we won’t be able to do this. If we can’t do this using the major and minor strokes would it be possible to add a converter to my label so that when the hour is 00:00 I can display MM/dd/yyyy but everything else would just be the hour?
Thank you for your feedback. I am glad that this helps you in resolving the issue.
Please feel free to contact us if you have any other questions.
Thank you. This is exactly what I was hoping to do!
After some investigation I created a sample project for you where I use a converter in order to display a date instead of 00:00. This could be achieved by setting a template for the AxisLabel:
<Style TargetType="{x:Type ig:AxisLabel}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="{Binding Converter={StaticResource conv}}"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Please feel free to have a look at the attached project and let me know if it helps you.