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

Change Custom tooltips key to External #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haidarzhy
Copy link

So it works with the latest version of Chart.js https://www.chartjs.org/docs/latest/getting-started/v3-migration.html#tooltip
tooltips.custom was renamed to plugins.tooltip.external

I was thinking about leaving both keys working for compatibility but everyone will still need to change external tooltip functions because it now has different content of the property

So it works with latest version of Chart.js
@@ -161,7 +161,7 @@

if(this.chartTooltips !== undefined){
this.options.plugins.tooltip = this.chartTooltips;
const tooltiplist = ["custom", "itemSort", "filter"];
const tooltiplist = ["external", "itemSort", "filter"];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it only applicable for stackedChart? I think it is also applicable to another chart? cmiiw.

If yes, can you help to update another from custom to another?

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

Successfully merging this pull request may close these issues.

2 participants