VisibleMinimum and VisibleMaximum always null

Hi,

I have set a DateTimeAxis on my chart.
But when I try to use ActualRangeChanged, the VisibleMinimum and VisibleMaximum are always null.
Is there something I do wrong or is the issue on your side ?

Thanks



Attachment: App1_6b600870.zip

8 Replies

PR Prabakaran R Syncfusion Team April 3, 2018 06:39 AM UTC

Hi Torrent,

Please get the actual range from ActualMinimum and ActualMaximum properties. If you would like change visible range based on the actual range, use the VisibleMinimum and VisibleMaximium properties.

Thanks,
Prabakaran.


JT Julien Torrent April 3, 2018 08:26 AM UTC

Hi,

The actualMaximum and ActualMinimum return the values for all the data in the graph. 
What I want is to get the maximum and minmum values that are visible on the graph (should be VisibleMaximum and VisibleMinimum).

Dosen't work either when I set ZoomPosition and ZoomFactor. Like the documentation says.

How can I get thoses values ?

Thanks





DV Divya Venkatesan Syncfusion Team April 4, 2018 09:53 AM UTC

Hi Torrent, 
 
We achieved your requirement to get the visible range using DependencyService. Please download the sample from the following link. 
 
 
Please let us know if you need any further assistance. 
 
Regards, 
Divya Venkatesan 
 



JT Julien Torrent April 4, 2018 01:23 PM UTC

Hi,

I have tried your sample. The problem is that it return the previous value. 
For example when I launch the app the axis range is 31/12/17 to 10/01/18.  But when I zoom to  01/01/18 to 09/01/18, it gives me the values before the zoom. (31/12/17 and 10/01/18) . But I want to get the 01/01/18 to 09/01/18.

I want to know if it is possible to get the value at the end of the zoom ?

Thanks


DV Divya Venkatesan Syncfusion Team April 9, 2018 05:10 PM UTC

Hi Torrent, 
  
We have analyzed the reported issue with our sample and the sample working fine. Can you please check with the sample in the following location? If still you face the problem, please revert us by modifying the sample based on your application along with replication procedure, SfChart version and Xamarin.Forms version. This would be helpful for us to serve you. 
  
Output: 
 
  
  
Regards, 
Divya Venkatesan 



JT Julien Torrent April 12, 2018 08:35 AM UTC

Hi,
The problem is when I load the data with the button, the event is not triggered. ( I think it sould be trigerred as the visiblerange has changed )

If you load the data, zoom in then double click to reset. You can see that it return the previous value.

Thanks


Attachment: ChartSample_2ca496e2.zip


JT Julien Torrent April 13, 2018 06:56 AM UTC

Hi,
The problem is in your sample too.
I have added a short video to show the problem. You can clearly see that it returns me the previous value.

Thanks

Attachment: ZoomAlwaysPrevious_4d454f.zip


MK Muneesh Kumar G Syncfusion Team April 13, 2018 01:07 PM UTC

Hi Torrent, 
 
Sorry for the inconvenience caused.  
 
We achieved your requirement by calculating the visible range from axis actual range by using axis ZoomFactor and ZoomPosition property. We have modified our sample based on this, please download the sample from the following link.  
  
  
Please let us know if you need any further assistance.  
  
Regards,  
Muneesh Kumar G. 
 


Loader.
Up arrow icon