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

142
Views
How to set datasets with different tooltip mode in ChartJs?

I'm having a mixed chart with Bar and Line charts. I want to set the tooltip mode for Bar chart datasets to 'index' and Line chart datasets to 'point'. I've tried to set mode like the below ways, but any of them didn't work. It only considers the mode set inside 'Options'.

  1. Set mode via dataset

    [{
       data : [<DATA>],
       id : '<ID>',
       label: 'Line chart'                  
       type: 'line',
       radius: 5,
       showLine: false,
       pointRadius: 3,
       mode: 'point' 
    },
    {
       data : [<DATA>],
       id : '<ID>',
       label: 'Bar chart'                  
       type: 'bar',
       radius: 5,
       showLine: false,
       pointRadius: 3,
       mode: 'index'
    }]
    
  2. Set mode via scriptable options

about 4 years ago · Santiago Trujillo
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!