Subversion Repositories SmartDukaan

Rev

Rev 34106 | Rev 34114 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 34106 Rev 34110
Line 350... Line 350...
350
                        if (percentage <= 1) {
350
                        if (percentage <= 1) {
351
                            percentCell.style.color = `red`
351
                            percentCell.style.color = `red`
352
                        }
352
                        }
353
                        if (percentage <= 40) {
353
                        if (percentage <= 40) {
354
                            color = '#F56983FF'; // Orange for <= 40%
354
                            color = '#F56983FF'; // Orange for <= 40%
355
                        } else if (percentage > 40 && percentage <= 75) {
355
                        } else if (percentage > 40 && percentage <= 95) {
356
                            color = '#f2c947e8'; // Yellow for 41% - 75%
356
                            color = '#f2c947e8'; // Yellow for 41% - 95%
357
                        } else {
357
                        } else {
358
                            color = '#82ef8299'; // Green for > 75%
358
                            color = '#82ef8299'; // Green for > 95%
359
                        }
359
                        }
360
 
360
 
361
                        // Apply gradient background with the color
361
                        // Apply gradient background with the color
362
                        percentCell.style.background = `linear-gradient(to right, ${color} ${percentage}%, transparent ${percentage}%)`;
362
                        percentCell.style.background = `linear-gradient(to right, ${color} ${percentage}%, transparent ${percentage}%)`;
363
                    } else if (percentCell) {
363
                    } else if (percentCell) {