DEV Community

Discussion on: React Pivot Table with AG Grid and Cube.js 🔢

Collapse
 
elijahe profile image
Elijah El-Haddad

Awesome post! I wish I had this when I was first implementing AG Grid with Cube.js :-) Thanks for taking the time to put it together and explaining how the different parts work!

One small note about this part:

(Remapping is needed because Cube.js returns column names in the Cube.measure and Cube.dimension format but AG Grid doesn't work with dots in the names.)

There's actually a less well known AG Grid property called suppressFieldDotNotation, see docs here, which when enabled allows the use of dots in the field names.

Collapse
 
igorlukanin profile image
Igor Lukanin

Wow! Thanks for the kind words, Elijah! I wish I've written it earlier too. Also, thanks for mentioning the suppressFieldDotNotation property. With it, the code would be much simpler.

So, you have a Cube.js project with AG Grid? Could you please share anything about your experience and the features of AG Grid that you especially like?