creativetimofficial / ct-material-dashboard-pro-react

React version of Material Dashboard Pro
138 stars 27 forks source link

[Bug] Hovering a chart #323

Open Just1bridou opened 1 year ago

Just1bridou commented 1 year ago

Version

2.1.0

Reproduction link

https://demos.creative-tim.com/material-dashboard-pro-react/#/dashboards/sales

Operating System

macOS Monterey

Device

MacBook Pro M1

Browser & Version

Chrome 111.0.5563.64

Steps to reproduce

  1. Create doughnut / pie chart
  2. Hover some parts inside
  3. When you're hovering a part, a tooltip with informations appear. Problem : Tooltip is glitching and it moves to other parts

    What is expected?

    We are expecting to see datas of the part of the pie of which we are hovering (in a tooltip)

    What is actually happening?

    When we're hovering a part, the tooltip who's displaying the data informations is glitching and moves to another part of the graph


Solution

Additional comments

Just1bridou commented 1 year ago

Some records of the bug:

https://user-images.githubusercontent.com/45208166/226931691-12358d43-8844-48d1-bdec-dd743946f1b2.mov

https://user-images.githubusercontent.com/45208166/226931721-1740a9e7-4b46-4948-a620-7f7c1a903f05.mov

epalekz commented 2 months ago

// SET to true, configs/index.js options.interaction.intersect: true