Update leaderboard chart with new label and style.

This commit is contained in:
Paul Gauthier 2024-05-04 10:22:53 -07:00
parent 9b4e643436
commit e9228e0ed8

View file

@ -38,7 +38,7 @@ it will work best with models that score well on the code editing benchmark.
</tbody>
</table>
<canvas id="leaderboardChart" width="800" height="450"></canvas>
<canvas id="leaderboardChart" width="800" height="450" style="margin-top: 20px"></canvas>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
@ -46,6 +46,7 @@ it will work best with models that score well on the code editing benchmark.
var leaderboardData = {
labels: [],
datasets: [{
label: 'Percent correct',
data: [],
backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgba(54, 162, 235, 1)',
@ -66,7 +67,6 @@ it will work best with models that score well on the code editing benchmark.
yAxes: [{
scaleLabel: {
display: true,
labelString: 'Percent correct'
},
ticks: {
beginAtZero: true