Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141333 | Dec 6,2018 10:19 AM UTC | Dec 11,2018 08:45 AM UTC | Xamarin.iOS | 3 |
![]() |
Tags: SfChart |
void Button_TouchUpInside(object sender, EventArgs e)
{
Model data = model.Data[2] as Model;
double xvalue = chart.PointForValue(data.XValue, chart.PrimaryAxis);
double yvalue = chart.PointForValue(data.YValue, chart.SecondaryAxis);
trackballBehavior.Show(new CoreGraphics.CGPoint(xvalue, yvalue));
}
|
void Button_TouchUpInside(object sender, EventArgs e)
{
Model data = model.Data[2] as Model;
double xvalue = chart.PointForValue(2,chart.PrimaryAxis);
double yvalue = chart.PointForValue(data.YValue, chart.SecondaryAxis);
trackballBehavior.Show(new CoreGraphics.CGPoint(xvalue, yvalue));
}
|
void Button_TouchUpInside(object sender, EventArgs e)
{
Model data = model.Data[2] as Model;
double xvalue = chart.PointForValue(ToOADate (data.XValue),chart.PrimaryAxis);
double yvalue = chart.PointForValue(data.YValue, chart.SecondaryAxis);
trackballBehavior.Show(new CoreGraphics.CGPoint(xvalue, yvalue));
}
DateTime BaseDate = new DateTime(1899, 12, 30);
public double ToOADate(DateTime time)
{
return time.Subtract(BaseDate).TotalDays;
}
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.