Skip to content

Commit 0d75476

Browse files
committed
feat(site): set min and max rotation for x axis
1 parent 9d3dad5 commit 0d75476

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

site/script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,14 @@ function createPerformanceBarChart(entries) {
643643
}
644644
},
645645
scales: {
646-
x: axisOptions,
646+
x: {
647+
...axisOptions,
648+
ticks: {
649+
...axisOptions.ticks,
650+
maxRotation: 90,
651+
minRotation: 25
652+
}
653+
},
647654
y: {
648655
beginAtZero: true,
649656
max: yAxisMax,

0 commit comments

Comments
 (0)