2021年4月29日星期四

No tooltip with chartjs

I can't get any tooltip with the chart produced with chart.js.

var cfg = {      type: 'doughnut',      data: data,      options: {          responsive: true,          maintainAspectRatio: true,          legend: {              position: 'bottom'          },          animation: {              animateScale: true,              animateRotate: true          }      }  };  

I used Chrome DevTools to catch a mouseover event but strangely it was not triggered when I move the pointer over the chart.

I wonder what can possibly be the issue here. Thanks.

https://stackoverflow.com/questions/67326108/no-tooltip-with-chartjs April 30, 2021 at 07:00AM

没有评论:

发表评论