Open luke-quadratic opened 2 months ago
@luke-quadratic
axes labels works for the following code snippet, scales
property need to be inside options
property
// Create scatter plot
new Chart(canvas, {
type: 'scatter',
data: data,
options: {
scales: {
x: {
title: {
display: true,
text: "mpg"
}
},
y: {
title: {
display: true,
text: 'horsepower'
},
suggestedMin: -10,
suggestedMax: 200
}
}
}
});