Hi Syncfusion,
Thanks for the quick response
and I still have a small issue
In my project I have x axis is DateTime and when I add the image I lock the image on specific date and I using your code that you send me before
so I use this code
public NSDate XPosition
{
get { return xPosition; }
set
{
xPosition = value;
DateTime date = (DateTime)xPosition;
seconds = TimeSpan.FromTicks(((DateTime)date).Ticks).TotalSeconds -
TimeSpan.FromTicks((new DateTime(1970, 1, 1)).Ticks).TotalSeconds;
}
}
public override void DrawInContext(CGContext ctx)
{
if (Chart != null && !Chart.Subviews.Contains(ImageView))
{
double x = Chart.PrimaryAxis.PointForValue(seconds);
double y = Chart.SecondaryAxis.PointForValue(YPosition);
ImageView.Frame = new CGRect(x, y, 40, 40);
Chart.AddSubview(ImageView);
}
else
{
double x = Chart.PrimaryAxis.PointForValue(seconds);
double y = Chart.SecondaryAxis.PointForValue(YPosition);
ImageView.Frame = new CGRect(x, y, 40, 40);
}
base.DrawInContext(ctx);
}
and my x value is a very high number that I can't use
it starts to happen after I update the lib
Thanks, Roi
CustomTooltipBehavior behavior = new CustomTooltipBehavior(imageView); behavior.XPosition = new DateTime(2014, 1, 4); |
internal double xPos;
private DateTime xPosition;
public DateTime XPosition { get { return xPosition; } set { xPosition = value; xPos = xPosition.ToOADate(); } } |