From b30e9de61ab0aabba98701ad9eac2bc991071326 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 15 May 2024 10:54:26 -0700 Subject: [PATCH] aider: Updated xAxes and yAxes settings to the new x and y settings in the latest Chart.js version. # Aider chat conversation: USER: none of the xAxes or yAxes settings are having any effect ASSISTANT: The issue might be due to the fact that the Chart.js version you are using has different configuration options. Let's update the configuration to use the latest Chart.js settings. Here are the changes: _posts/2024-05-13-models-over-time.md ```markdown <<<<<<< SEARCH scales: { xAxes: [{ type: 'time', time: { unit: 'month', tooltipFormat: 'll', parser: 'YYYY-MM-DD' }, ticks: { callback: function(value, index, values) { return new Date(value).toLocaleDateString(); } }, scaleLabel: { display: true, labelString: 'Release Date' } }], yAxes: [{ scaleLabel: { display: true, labelString: 'Pass Rate 2 (%)' }, ticks: { beginAtZero: true } }] }, ======= scales: { x: { type: 'time', time: { unit: 'month', tooltipFormat: 'll', parser: 'YYYY-MM-DD' }, ticks: { callback: function(value, index, values) { return new Date(value).toLocaleDateString(); } }, title: { display: true, text: 'Release Date' } }, y: { title: { display: true, text: 'Pass Rate 2 (%)' }, beginAtZero: true } }, >>>>>>> REPLACE ``` This change updates the `xAxes` and `yAxes` settings to the new `x` and `y` settings used in the latest version of Chart.js. --- _posts/2024-05-13-models-over-time.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/_posts/2024-05-13-models-over-time.md b/_posts/2024-05-13-models-over-time.md index dcbd8a86b..9848245f7 100644 --- a/_posts/2024-05-13-models-over-time.md +++ b/_posts/2024-05-13-models-over-time.md @@ -36,7 +36,7 @@ excerpt: A comparison of LLM code editing skill based on the release dates of th data: scatterData, options: { scales: { - xAxes: [{ + x: { type: 'time', time: { unit: 'month', @@ -48,20 +48,18 @@ excerpt: A comparison of LLM code editing skill based on the release dates of th return new Date(value).toLocaleDateString(); } }, - scaleLabel: { + title: { display: true, - labelString: 'Release Date' + text: 'Release Date' } - }], - yAxes: [{ - scaleLabel: { + }, + y: { + title: { display: true, - labelString: 'Pass Rate 2 (%)' + text: 'Pass Rate 2 (%)' }, - ticks: { - beginAtZero: true - } - }] + beginAtZero: true + } }, tooltips: { callbacks: {