Hi,
Is it possible to apply gradient color based on min and max value? Min being red and max being green and rest other values with a gradient. I have a percentage column and i need to show different colors based on value. I saw below example in documentation for customiseCell event
customiseCell(args: QueryCellInfoEventArgs) {
if (args.column.field === 'Freight') {
if (args.data['Freight'] < 80) {
args.cell.style.backgroundColor ="greenyellow" ; // setting style directly
}
}
}
The thing is it only expects a fixed color based on a range of value. I need to have a gradient from 0 to 100.
Thanks.