Hi,
I am using XamDataChart. I have supplied DateTime values to chart but its not handling daylight saving time issues. Is there any way I can handle it by using converters or something else?
Hello smith_jordan,
I am just checking if you require any further assistance on the matter.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello,
I have been looking through your question and in order to update your DateTime values according to the summer time yearly changes, you can manually change your data source items or do the same thing by implementing a converter that adds/substrates hours to your original value.
Here is a one possible implementation using a converter:
In the xaml:
.
xmlns:local="clr-namespace:xamDataChart_Series"
<Grid.Resources>
<local:ConvertToSummerTime x:Key=" ConvertMyTime "/>
</Grid.Resources>
<ig:CategoryDateTimeXAxis Visibility="Hidden" ItemsSource="{Binding Converter={StaticResource ConvertMyTime}}" x:Name="catXAxis"/>
And in the code behind:
public class ConvertToSummerTime : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
List<Point> myDAta = value as List<Point>;
foreach (var elems in myDAta)
elems.Dates.AddHours(3);
elems.Dates.AddDays(1);
}
return myDAta;
public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
return value;
Do not hesitate to contact us in case of future concerns regarding the discussed matter
Infragistics, Inc.