Skip to content
+

Migration from v6 to v7

This guide describes the changes needed to migrate Charts from v6 to v7.

Introduction

This is a reference guide for upgrading @mui/x-charts from v6 to v7. The change between v6 and v7 is mostly here to match the version with other MUI X packages. Not big breaking changes are expected.

Start using the new release

In package.json, change the version of the charts package to next.

-"@mui/x-charts": "6.x.x",
+"@mui/x-charts": "next",

Breaking changes

Since v7 is a major release, it contains changes that affect the public API. These changes were done for consistency, improved stability and to make room for new features.

Renaming

Some types got renamed for coherence:

v6 v7
ChartsTooltipSlotComponentProps ChartsTooltipSlotProps
ChartsTooltipSlotsComponent ChartsTooltipSlots