diff --git a/src/skiasharp/LiveChartsCore.SkiaSharp/SKCharts/SKDefaultTooltip.cs b/src/skiasharp/LiveChartsCore.SkiaSharp/SKCharts/SKDefaultTooltip.cs index 5fb0b82e2..1599cf8f3 100644 --- a/src/skiasharp/LiveChartsCore.SkiaSharp/SKCharts/SKDefaultTooltip.cs +++ b/src/skiasharp/LiveChartsCore.SkiaSharp/SKCharts/SKDefaultTooltip.cs @@ -80,6 +80,16 @@ public Paint? BackgroundPaint /// public double TextSize { get; set; } = 16; + /// + /// Gets or sets the easing function. + /// + public Func Easing { get; set; } = EasingFunctions.EaseOut; + + /// + /// Gets or sets the animations speed. + /// + public TimeSpan AnimationsSpeed { get; set; } = TimeSpan.FromMilliseconds(150); + /// public void Show(IEnumerable foundPoints, Chart chart) { @@ -103,11 +113,11 @@ public void Show(IEnumerable foundPoints, Chart chart) _container.Geometry.Fill = BackgroundPaint; _container.Geometry.Wedge = wedge; - _container.Geometry.WedgeThickness = 2; + _container.Geometry.WedgeThickness = 3; _container .Animate( - new Animation(EasingFunctions.EaseOut, TimeSpan.FromMilliseconds(150)), + new Animation(Easing, AnimationsSpeed), nameof(IDrawnElement.Opacity), nameof(IDrawnElement.ScaleTransform), nameof(IDrawnElement.X),