$3.80
3
$11.40
$5.00
1
$5.00
$2.50
2
$5.00
$3.80
2
$7.60
$5.00
1
$5.00
$2.50
3
$7.50
$3.80
1
$3.80
$5.00
1
$5.00
$2.50
1
$2.50
$3.80
1
$3.80
$
$
$2.50
1
$2.50
$3.80
2
$7.60
$5.00
2
$10.00
$2.50
3
$7.50
$3.80
2
$7.60
$5.00
1
$5.00
$2.50
3
$7.50
$3.80
1
$3.80
$5.00
5
$25.00
$2.50
3
$7.50
$3.80
1
$3.80
$5.00
2
$10.00
$2.50
4
$10.00
$3.80
1
$3.80
$5.00
4
$20.00
$2.50
3
$7.50
$3.80
4
$15.20
$5.00
1
$5.00
$2.50
2
$5.00
$3.80
2
$7.60
$
$
$2.50
1
$2.50
$3.80
1
$3.80
$5.00
1
$5.00
$2.50
4
$10.00
Antoni
Peter
Andrew
Michael
Regina
Cheryl
Petra
Ian
Shelley
Nancy
Sven
Yoshi
Caffe Americano
Sum
Count
Average
Cappuccino
Sum
Count
Average
Cramel Latte
Sum
Count
Average

Description

This is an example of React Pivot Grid with custom style of the grid cells depending on their current value. You can change the rendering of any cell, row or column and insert your own HTML content by implementing the itemsRenderer and cellsRenderer functions. In this case, the custom code simply chooses among five predefined colors and sets the backgroundColor property of the cell content. This color customization is applied only to the cells with 'Sum' aggregation function. You can change the code of the itemsRender and cellsRenderer functions and implement your own customization logic using standard HTML and CSS.