protected double GetDistance(CGPoint tapLocation, IPointEntry entry, IXAxis xAxis, IYAxis yAxis) { var entryContentLocationX = xAxis.GetContentValue(entry.X); var entryContentLocationY = yAxis.GetContentValue(entry.Y); return(Math.Sqrt(Math.Pow(entryContentLocationX - tapLocation.X, 2) + Math.Pow(entryContentLocationY - tapLocation.Y, 2))); }
protected virtual void DrawEntryValue(CGContext context, IPointEntry pointEntry, CGPoint position, TextStyle textStyle) => DrawHelper.DrawText(context, ValueFormatter.Invoke(pointEntry), position, textStyle);