coreui-free-react-admin-template icon indicating copy to clipboard operation
coreui-free-react-admin-template copied to clipboard

Tooltip not hiding

Open 10YAR opened this issue 1 year ago • 0 comments

When I use the doughnut chart with these options, the tooltip is still displayed :

options={{
  responsive: true,
  interaction: {
    intersect: false,
  },
  plugins: {
    tooltip: {
      enabled: false,
    },
    legend: {
      display: false,
    },
    title: {
      display: false,
    },
  },
}}

Temporary fix: add this to your css file:

.disable-tooltips .chartjs-tooltip {
  display: none;
}

then add the disable-tooltips class on your <CChartDoughnut> element.

10YAR avatar Apr 21 '24 14:04 10YAR