LinePlot API
API reference docs for the React LinePlot component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import { LinePlot } from '@mui/x-charts/LineChart';
// or
import { LinePlot } from '@mui/x-charts';Callback fired when a line item is clicked.
Type:func
Signature:
function(event: React.MouseEvent, lineItemIdentifier: LineItemIdentifier) => void eventThe event source of the callback.lineItemIdentifierThe line item identifier.
The component cannot hold a ref.