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> </tbody>
</table> </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 src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script> <script>
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
@ -46,6 +46,7 @@ it will work best with models that score well on the code editing benchmark.
var leaderboardData = { var leaderboardData = {
labels: [], labels: [],
datasets: [{ datasets: [{
label: 'Percent correct',
data: [], data: [],
backgroundColor: 'rgba(54, 162, 235, 0.2)', backgroundColor: 'rgba(54, 162, 235, 0.2)',
borderColor: 'rgba(54, 162, 235, 1)', 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: [{ yAxes: [{
scaleLabel: { scaleLabel: {
display: true, display: true,
labelString: 'Percent correct'
}, },
ticks: { ticks: {
beginAtZero: true beginAtZero: true