add more gradient
This commit is contained in:
@@ -96,10 +96,17 @@ const BacktestTable: React.FC<BacktestTableProps> = ({list, isFetching, displayS
|
|||||||
}
|
}
|
||||||
|
|
||||||
const getScoreColor = (score: number) => {
|
const getScoreColor = (score: number) => {
|
||||||
if (score >= 75) return '#08C25F'; // success
|
// Create a smooth gradient from red to green
|
||||||
if (score >= 50) return '#B0DB43'; // info
|
if (score >= 90) return '#00D100'; // bright green
|
||||||
if (score >= 25) return '#EB6F22'; // warning
|
if (score >= 80) return '#2ECC71'; // green
|
||||||
return '#FF5340'; // error
|
if (score >= 70) return '#5DBA5D'; // light green
|
||||||
|
if (score >= 60) return '#8BC34A'; // lime green
|
||||||
|
if (score >= 50) return '#CDDC39'; // lime
|
||||||
|
if (score >= 40) return '#FFEB3B'; // yellow
|
||||||
|
if (score >= 30) return '#FF9800'; // orange
|
||||||
|
if (score >= 20) return '#FF5722'; // deep orange
|
||||||
|
if (score >= 10) return '#F44336'; // red
|
||||||
|
return '#D32F2F'; // dark red
|
||||||
};
|
};
|
||||||
|
|
||||||
const columns = React.useMemo(
|
const columns = React.useMemo(
|
||||||
|
|||||||
Reference in New Issue
Block a user