Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

107
Views
Chart.js label callbacks are never called

I'm working with Chart.js 3.8.0.

I'm trying to create custom tooltip text.

new Chart($('#truck-dwell'), {
    type: 'scatter',
    data: {
        datasets: [{
            label: 'Dwell Time (Minutes)',
            data: response,
            backgroundColor: Colors.Red,
        }],
    },
    options: {
        scales: {
            x: {
                type: 'linear',
                position: 'bottom'
            }
        },
        plugins: {
            tooltips: {
                callbacks: {
                    label: function(ctx) {
                        return 'Hello, World!';
                    }
                }
            }
        }
    }
});

Although I've found several sources say this is the newer, version 3 syntax, a breakpoint on my label function shows it is never called.

What am I missing?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Your tooltips: property name is mislabelled it should be tooltip:.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!