LineChart API
Demos
For examples and details on the usage of this React component, visit the component demo pages:
Import
import { LineChart } from '@mui/x-charts';Component name
The nameMuiLineChart can be used when providing default props or style overrides in the theme.Props
| Name | Type | Default | Description | 
|---|---|---|---|
| bottomAxis | { axisId: string, classes?: object, disableLine?: bool, disableTicks?: bool, fill?: string, label?: string, labelFontSize?: number, position?: 'bottom' | 'top', stroke?: string, tickFontSize?: number, tickSize?: number } | string  | xAxisIds[0] The id of the first provided axis | Indicate which axis to display the the bottom of the charts. Can be a string (the id of the axis) or an object  XAxisProps | 
| leftAxis | { axisId: string, classes?: object, disableLine?: bool, disableTicks?: bool, fill?: string, label?: string, labelFontSize?: number, position?: 'left' | 'right', stroke?: string, tickFontSize?: number, tickSize?: number } | string  | yAxisIds[0] The id of the first provided axis | Indicate which axis to display the the left of the charts. Can be a string (the id of the axis) or an object  YAxisProps | 
| rightAxis | { axisId: string, classes?: object, disableLine?: bool, disableTicks?: bool, fill?: string, label?: string, labelFontSize?: number, position?: 'left' | 'right', stroke?: string, tickFontSize?: number, tickSize?: number } | string  | null | Indicate which axis to display the the right of the charts. Can be a string (the id of the axis) or an object  YAxisProps | 
| topAxis | { axisId: string, classes?: object, disableLine?: bool, disableTicks?: bool, fill?: string, label?: string, labelFontSize?: number, position?: 'bottom' | 'top', stroke?: string, tickFontSize?: number, tickSize?: number } | string  | null | Indicate which axis to display the the top of the charts. Can be a string (the id of the axis) or an object  XAxisProps | 
The component cannot hold a ref.