Skip to content
+

Charts - Getting Started

Get started with the Charts components. Install the package, configure your application and start using the components.

Installation

To install this library, run

npm install @mui/x-charts

Displaying Charts

A Chart can be rendered in one of two ways: as a single component, or by composing subcomponents.

Single Charts

For most common use cases, we recommend rendering as a single component.

The components intended to be rendered individually are named with "Chart" (as opposed to "Plot") and only require the series prop, which describes the data to render.

bar Abar Bbar C012345
Press Enter to start editing

Composed Charts

To combine different Charts, like Lines with Bars, you can use composition with the <ChartContainer /> wrapper.

Inside this wrapper, you can render <XAxis />, <YAxis />, or any plot component (<BarPlot />, <LinePlot />, <AreaPlot />, or <ScatterPlot />). See the Composition doc for complete details.

20102011201220132014Years024681012Results1k2k3k4k5k6k10kPIB

Axis management

MUI X Charts are flexible when it comes to axis management: they support multiple-axis charts with any combination of scales and ranges.

See the Axis doc for more details.

Styling

The Charts library follows the same styling patterns as other MUI component libraries, such as Material UI.

See the Styling doc for details.