coreui / coreui-free-react-admin-template

Open source admin template based on Bootstrap 5 and React.js
https://coreui.io/product/free-react-admin-template/
MIT License
4.6k stars 2.33k forks source link

Tooltip not hiding #422

Closed 10YAR closed 4 months ago

10YAR commented 6 months ago

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.

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions