[charts] onMarkClick
not working
#13629
Labels
component: charts
This is the name of the generic UI component, not the React module!
regression
A bug, but worse
support: commercial
Support request from paid users
support: pro standard
Support request from a Pro standard plan user. https://mui.com/legal/technical-support-sla/
The problem in depth
I'm trying to build a chart. The line chart has two data sets. I'm trying to click on one data point to get its value but I am not getting any response from onMarkClick prop. The onAxisClick prop is returning me data but obviously as it is the axis click it is returning me both values.
Here is my code. Note that only onAxisClick is logging to my console when I click a data point. I have tried removing all of the other onClick events to see if they are overriding one another, but even onMarkClick by itself is not working.
Your environment
System:
OS: macOS 13.0
Binaries:
Node: 18.18.2 - ~/.nvm/versions/node/v18.18.2/bin/node
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.2/bin/npm
pnpm: 9.1.3 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 126.0.6478.126
Edge: Not Found
Safari: 16.1
npmPackages:
@emotion/react: 11.11.4 => 11.11.4
@emotion/styled: 11.11.5 => 11.11.5
@mui/base: 5.0.0-beta.40
@mui/core-downloads-tracker: 5.15.19
@mui/icons-material: 5.15.20 => 5.15.20
@mui/material: 5.15.19 => 5.15.19
@mui/private-theming: 5.15.14
@mui/styled-engine-sc: 6.0.0-alpha.18
@mui/system: 5.15.15
@mui/types: 7.2.14
@mui/utils: 5.15.14
@mui/x-charts: 7.7.1 => 7.7.1
@mui/x-data-grid: 7.6.2
@mui/x-data-grid-pro: 7.6.2 => 7.6.2
@mui/x-date-pickers: 7.6.2
@mui/x-date-pickers-pro: 7.6.2 => 7.6.2
@mui/x-license: 7.6.1
@types/react: 18.3.3 => 18.3.3
react: 18.3.1 => 18.3.1
react-dom: 18.3.1 => 18.3.1
styled-components: 6.1.11 => 6.1.11
typescript: 5.5.2 => 5.5.2
Search keywords: On mark click not working
Order ID: 91932
The text was updated successfully, but these errors were encountered: