mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: Add x-axis label rotation and adjust chart height
This commit is contained in:
parent
f0c55a949c
commit
2b03b58018
1 changed files with 5 additions and 3 deletions
|
@ -57,9 +57,9 @@ top coding models, as compared to their previous "solo" scores (striped bars).
|
|||
// Function to determine aspect ratio and base font size based on screen width
|
||||
function getChartSettings() {
|
||||
if (window.innerWidth < 600) {
|
||||
return { aspectRatio: 1, baseFontSize: 8 };
|
||||
return { aspectRatio: 1.2, baseFontSize: 8 }; // Slightly taller for small screens
|
||||
} else {
|
||||
return { aspectRatio: 1.5, baseFontSize: 12 };
|
||||
return { aspectRatio: 1.7, baseFontSize: 12 }; // Slightly taller for larger screens
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,9 @@ top coding models, as compared to their previous "solo" scores (striped bars).
|
|||
ticks: {
|
||||
font: {
|
||||
size: baseFontSize + 4
|
||||
}
|
||||
},
|
||||
maxRotation: 90, // Allow full rotation if needed
|
||||
minRotation: 45 // Start rotating at 45 degrees to fit more labels
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue