Zoom DateTimeAxis and change date value depending on zoom factor
Thanks for using Syncfusion products.
We have prepared the sample based on your requirement. Please download the sample from following location.
Sample: http://www.syncfusion.com/downloads/support/forum/128316/ze/ChartSample1609695631
Regards,
Parthiban S
Thanks for the update. We are glad to know that the given solution works. Please get back to us if you need further assistance.
Thanks,
Saravana Pandian M.
We would like to inform you that we are unable to reproduce the reported issue at our end. We have also attached the video of this sample’s behaviour in the below link.
Video : http://www.syncfusion.com/downloads/support/forum/128316/ze/TimeZone_Video2069356025
Could you please check and let us know if your issue is different from this.
We also request you to confirm us whether you are able to reproduce the reported issue in the provided sample.
Regards
Saravana Pandian M.
We have modified the previous updated sample. Please download the sample from the following location. Please get back to us if you are still facing any issues.
Sample : http://www.syncfusion.com/downloads/support/forum/128316/ze/ChartSample816007560
Regards,
Saravana Pandian M.
Thanks for the update. We are glad to know that the given solution works. Please get back to us if you need further assistance.
Thanks,
Saravana Pandian M.
We are sorry to inform you that we are unable to reproduce the reported issue in the sample which we provided in our previous update. We have also attached the video of this sample’s behaviour in iOS. Please download the video from below link.
Video : http://www.syncfusion.com/downloads/support/forum/128316/ze/TimeZone_Sample_Video835211272
Please update us with more details if you are still facing this issue.
Regards
Saravana Pandian M.
Hi Saravana
Pandian,Thanks for the video, it actually demonstrates the issue - please take
a look to the code especially to DataModel.cs file you will see that the first
point has date value - 2/1/2010 and the last point has - 6/1/2010 but in the
Video demonstration the first point has date value - 4/1/2010 and last point
has 8/1/2010. So chart displays DateTime for two days ahead. If you remove
LabelCreated event handler you will notice that it works correctly and as
expected - first point starts as 2/1/2010 and the last as 6/1/2010.
Regarding TimeZone issue - in order to see it you need to change DataPoint collection so that it should have Time value too. Currently it contains only Date and time as 00:00:00. You can replace your DataPoint collection with this code:
Data.Add(new ChartDataPoint(new DateTime(2010, 1, 02, 16, 10, 5), 25));
Data.Add(new
ChartDataPoint(new DateTime(2010, 1, 02, 16, 15, 6), 55));
Data.Add(new
ChartDataPoint(new DateTime(2010, 1, 02, 16, 20, 48), 30));
Data.Add(new
ChartDataPoint(new DateTime(2010, 1, 02, 16, 25, 12), 55));
Data.Add(new
ChartDataPoint(new DateTime(2010, 1, 02, 16, 30, 4), 40));
In the
above DataPoint collection the first point has DateTime value 2/1/2010 4:10:5
PM and the last point has DateTime value 2/1/2010 4:30:4. Now if you run with
code above you will get the following:
1) For
Kolkata(India) time zone - first data point's DateTime value will be displayed
as 4/1/2010 4:10:35 PM(2 days and 30 sec ahead)
2) For
Karachi(Pakistan) time zone - first data point's DateTime value will be
displayed as 4/1/2010 4:10:47 PM(2 days and 42 sec ahead)
3) For
London(UK) time zone - first data point's DateTime value will be displayed as
4/1/2010 4:11:03 PM(2 days and 58 sec ahead)
Note that
date still is for two days ahead but doesn't change when you change Time Zone
but time changes.
Thanks in
advance
Khasan
Sorry for the inconvenience caused.
We have modified the sample as per your requirement which can be downloaded from the below location.
Sample : http://www.syncfusion.com/downloads/support/forum/128316/ze/TimeZoneSample-332638456
Regards,
Saravana Pandian M.
Thanks for the update. We are glad to know that the given solution works. Please get back to us if you need further assistance.
Regards,
Saravana Pandian M.
Any suggestions on how to implement this feature in Blazor? There doesn't seem to be a " LabelCreated " event.
- 17 Replies
- 5 Participants
-
KH khasan
- Jan 13, 2017 01:40 PM UTC
- Jun 23, 2021 05:00 PM UTC