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

99
Views
Google Chart custom tooltip not displayed as HTML

Why isn't the tooltip for the red line rendered as HTML? I have added the option tooltip: { isHtml: true } but that does not help.

https://jsfiddle.net/w7hymkua/2/

google.charts.load('current', {
  packages: ['corechart', 'line']
});
google.charts.setOnLoadCallback(drawBasic);

function drawBasic() {
  var query = new google.visualization.Query("https://docs.google.com/spreadsheets/d/1T8eNrLpk7bOuvHGDojsHALzoxHHHoQ6iJ7AZIAnZntE/edit?usp=sharing");
  query.send(handleQueryResponse);
}

function handleQueryResponse(response) {
  var data = response.getDataTable();
  data.setColumnProperty(3, 'role', 'tooltip');
  data.setColumnProperty(3,'html','true');
  var chart = new google.visualization.LineChart(document.getElementById('chart_div'));
  var options = {
    title: 'Weight mot Date',
    legend: 'none',
    bar: {
      groupWidth: '95%'
    },
    hAxis: {
      title: 'Date',
      format: 'yyy-MM-dd',
    },
    vAxis: {
      title: 'Weight',
      viewWindow: {
        max: 100,
        min: 0,
      },
      ticks: [0, 25, 50, 75, 100],
      focusTarget: 'category',
      tooltip: { isHtml: true }
    }
  };
  chart.draw(data, options);
}
about 4 years ago · Juan Pablo Isaza
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!