style: Allow horizontal x-axis labels on leaderboard chart

This commit is contained in:
Paul Gauthier 2025-03-28 19:49:23 -10:00 committed by Paul Gauthier (aider)
parent c9d561e7ad
commit a4c9c10029

View file

@ -173,7 +173,7 @@ document.addEventListener('DOMContentLoaded', function () {
ticks: {
autoSkip: false, // Prevent labels from being automatically skipped
maxRotation: 90, // Allow labels to rotate up to 90 degrees
minRotation: 90, // Force labels to rotate 90 degrees if needed
minRotation: 0,
callback: function(value, index) {
const label = this.getLabelForValue(value);
if (label.length <= "claude-3-5-sonnet".length) {