LineChart API
API reference docs for the React LineChart component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { LineChart } from '@toolpad-core/LineChart';
// or
import { LineChart } from '@toolpad-core';
Learn about the difference by reading this guide on minimizing bundle size.
Props of the X LineChart component are also available.
Name | Type | Description |
---|---|---|
dataProvider | { createOne?: func, deleteOne?: func, fields?: object, getMany: func, getOne?: func, idField?: object, updateOne?: func } | The data provider to resolve the displayed data. This object must be referentially stable. |
The
ref
is forwarded to the root element.Inheritance
While not explicitly documented above, the props of the X LineChart component are also available in LineChart. You can take advantage of this to target nested components.