Master Detail React DataGrid with Charts
By admin·
In this demo, we show you how easy it is to leverage the master-detail support in our React DataGrid in order to toggle between a table and a chart view in the row detail.
It's very easy to change between an InfiniteTable or a chart in the row detail
In the RowDetail component, we render a
<DataSource />, which in turn will render either an <InfiniteTable /> component or a chart.The
<DataSource /> in InfiniteTable is very powerful and does all the data processing the grid needs. All the row grouping, sorting, filtering, aggregations, pivoting are done in the <DataSource /> - so you can use it standalone, or with InfiniteTable - it's totally up to you.In practice, this means that you can use the
<DataSource /> to process your data and then simply pass that to a charting library like ag-charts-react.The demo above is using the
ag-charts-react package to render the charts.Read more about the rendering custom content in a master-detail setup.