mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-09 05:39:06 +02:00
34 lines
491 B
JavaScript
34 lines
491 B
JavaScript
module.exports = {
|
|
description: 'showLine option should draw a line if true',
|
|
config: {
|
|
type: 'scatter',
|
|
data: {
|
|
datasets: [{
|
|
data: [{x: 10, y: 15}, {x: 15, y: 10}],
|
|
pointRadius: 10,
|
|
backgroundColor: 'red',
|
|
showLine: true,
|
|
label: 'dataset1'
|
|
}],
|
|
},
|
|
options: {
|
|
legend: false,
|
|
title: false,
|
|
scales: {
|
|
x: {
|
|
display: false
|
|
},
|
|
y: {
|
|
display: false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
canvas: {
|
|
width: 256,
|
|
height: 256
|
|
}
|
|
}
|
|
};
|