mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 00:35:00 +00:00
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.
This commit is contained in:
parent
10bb7c7402
commit
b30e9de61a
1 changed files with 9 additions and 11 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue