mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
fix: Remove stripes and dots from color patches in legends
This commit is contained in:
parent
4b6dd92f73
commit
b7ddd74631
1 changed files with 1 additions and 7 deletions
|
@ -171,15 +171,9 @@ o1-preview as Senior and Deepseek as Junior, raising the SOTA from 79.7% up to 8
|
||||||
"o1-mini": "rgba(255, 99, 132, 0.2)"
|
"o1-mini": "rgba(255, 99, 132, 0.2)"
|
||||||
};
|
};
|
||||||
return Object.keys(colorMapping).map(function(key) {
|
return Object.keys(colorMapping).map(function(key) {
|
||||||
var fillStyle = colorMapping[key];
|
|
||||||
if (chart.data.labels.some(label => label.includes('deepseek whole'))) {
|
|
||||||
fillStyle = createStripedPattern(fillStyle);
|
|
||||||
} else if (chart.data.labels.some(label => label.includes('deepseek diff'))) {
|
|
||||||
fillStyle = createPolkaDotPattern(fillStyle);
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
text: key,
|
text: key,
|
||||||
fillStyle: fillStyle,
|
fillStyle: colorMapping[key],
|
||||||
strokeStyle: colorMapping[key].replace('0.2', '1'),
|
strokeStyle: colorMapping[key].replace('0.2', '1'),
|
||||||
lineWidth: 1
|
lineWidth: 1
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue