chartjs / chartjs/Chart.js

Tooltip animation can't be disabled

Open
#10,197 3 comments 0 reactions 0 assignees View on GitHub
type: support
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

When hovering over the chart, the tooltip should show.
Drawn metadata should stay, the animation of the tooltip shouldn't be there.

### Current behavior

I draw some metadata in the table using the following:

```
animation: {
onComplete: ChartHelper.distributionChartDrawMetadata()
},
```

The metadata disappears while the tooltip is fading in/out.
I can disable the animation of the tooltip using:

```
animation: false
```

But that also removes the metadata drawing.

### Reproducible sample

-

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

v3.6.0

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.