Subversion Repositories SmartDukaan

Rev

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

Rev 33958 Rev 33960
Line 159... Line 159...
159
                        const percentage = ((achievedValue / targetValue) * 100).toFixed(1);
159
                        const percentage = ((achievedValue / targetValue) * 100).toFixed(1);
160
                        percentCell.textContent = percentage + '%';
160
                        percentCell.textContent = percentage + '%';
161
 
161
 
162
                        // Determine background color based on percentage
162
                        // Determine background color based on percentage
163
                        let color;
163
                        let color;
-
 
164
                        if (percentage <= 1) {
-
 
165
                            percentCell.style.color = `red`
-
 
166
                        }
164
                        if (percentage <= 40) {
167
                        if (percentage <= 40) {
165
                            color = '#F56983FF'; // Orange for <= 40%
168
                            color = '#F56983FF'; // Orange for <= 40%
166
                        } else if (percentage > 40 && percentage <= 75) {
169
                        } else if (percentage > 40 && percentage <= 75) {
167
                            color = '#f2c947e8'; // Yellow for 41% - 75%
170
                            color = '#f2c947e8'; // Yellow for 41% - 75%
168
                        } else {
171
                        } else {