mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.05k stars 1.25k forks source link

[charts] Add integration with datagrig filtering #14274

Open domshyra opened 3 weeks ago

domshyra commented 3 weeks ago

Summary

I am wondering if there will be any callBacks exposed on the data grid to keep the dataset's in line. something like this where we have a dataGrid that controls all the data for a mui chart.

Here is a sandbox to demo the code I wrote to achieve this, but it would be nice to have a hook or a call back that when the dataGrid changes we can redraw the chart with the same dataset.

Examples

https://codesandbox.io/p/sandbox/muichartsanddatagridcallback-39m7pr

Motivation

Similar to like a dev express JS lib, doing filter or sort actions on the data grid should redraw the Mui chart based on the new shown dataset

Search keywords: datagrid mui charts

alexfauquette commented 3 weeks ago

That's a nice example. The feature is planned to be bone in the pro plan: https://mui.com/pricing/

image

But there is no planed date for now