PointToValue Method (ChartBase)

In wpf chart we have for vb.net

Public Overridable Function PointToValue( _
   ByVal axis As ChartAxis, _
   ByVal point As Point _
) As Double
 
'Usage
 
Dim instance As ChartBase
Dim axis As ChartAxis
Dim point As Point
Dim value As Double

and for c#

public virtual double PointToValue( 
   ChartAxis axis,
   Point point
)
Parameters
axis
The axis value.
point
The point.

How can we made this for uwp ?

Kindly Regard,
Piet Tadema


3 Replies

DS Durgadevi Selvaraj Syncfusion Team January 11, 2018 12:23 PM UTC

Hi PIETTADEMA,
  
Thanks for contacting Syncfusion support. 
 
We have analyzed your requirement based on provided information and you can also override PointToValue() of chart in UWP as like WPF. 
 
Please refer the below codes of PointToValue() in UWP( VB.Net and C#), 
 
Code Snippet[C#] 
 
public class SfChartExt: SfChart 
{ 
        public override double PointToValue(ChartAxis axis, Point point) 
        { 
            return base.PointToValue(axis, point); 
        } 
 
} 
 
Code Snippet[VB] 
 
Public Class SfChartExt 
    Inherits SfChart 
 
    Public Overrides Function PointToValue(ByVal axis As ChartAxis, ByVal point As Point) As Double 
        Return MyBase.PointToValue(axis, point) 
    End Function 
 
End Class 
 
We have prepared a simple sample for positioning chart annotation based on mouse click point using PointToValue() in chart UWP. 
 
The reference samples can be downloaded from the below location, 
 
Please let us know if you have any concerns. 
 
Regards,  
Durgadevi S 



PI PIETTADEMA January 13, 2018 08:48 PM UTC

Thank you very much,works great !

Piet Tadema


DS Durgadevi Selvaraj Syncfusion Team January 15, 2018 05:41 AM UTC

Hi Piet, 
 
We glad to know that your problem has been resolved. 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Durgadevi S 


Loader.
Up arrow icon