Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep Data Point "Hover" enabled when Tooltips are hidden #1621

Open
Jannik-M91 opened this issue Oct 2, 2024 · 0 comments
Open

Keep Data Point "Hover" enabled when Tooltips are hidden #1621

Jannik-M91 opened this issue Oct 2, 2024 · 0 comments

Comments

@Jannik-M91
Copy link

Is your feature request related to a problem? Please describe.

When tooltips on a chart are disabled using TooltipPosition="Hidden" this also disables the neat hover functionality which highlights a point once the cursor is above it.

Describe the solution you'd like

In my application I do not want tooltips, but I really like the hover feature, so it would be nice to have a setting to disable tooltips, but keep hover.

Describe alternatives you've considered

As a workaround I have defined a custom tooltip class which does nothing:

public class CustomTooltip : IChartTooltip<SkiaSharpDrawingContext>
{
    public void Show(IEnumerable<ChartPoint> foundPoints, Chart<SkiaSharpDrawingContext> chart)
    {
    }

    public void Hide(Chart<SkiaSharpDrawingContext> chart)
    {
    }
}

And added it to my chart:

      <lvc:PolarChart Name="MyChart"
                      ...>
        <lvc:PolarChart.Tooltip>
          <vmp:CustomTooltip />
        </lvc:PolarChart.Tooltip>
      </lvc:PolarChart>

This works but a config option would be cleaner and probably cause less overhead when drawing the chart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants