Posted 4 September 2019, 7:24 am EST
Hi,
Does the FlexGrid have some built-in functionality for a heat map? Just like the one in Excel?
Regards,
Ralph
Forums Home / Wijmo / General Discussion
Posted by: ralph.ramos on 4 September 2019, 7:24 am EST
Posted 4 September 2019, 7:24 am EST
Hi,
Does the FlexGrid have some built-in functionality for a heat map? Just like the one in Excel?
Regards,
Ralph
Posted 5 September 2019, 12:37 am EST
Hi Ralph,
You may use the formatItem event of change the background color of the cells with appropriate colors. To get the color of the current cell, you may find the percentage of the current value and using this, you may calculate the RGB value for the color. Please refer to the sample below:
https://stackblitz.com/edit/js-9erw18
Regards,
Ashwin