mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 20:29:12 +02:00
c6976e8975
* New plugin: subtitle * Fix naive error for multiple charts
42 lines
708 B
JavaScript
42 lines
708 B
JavaScript
|
|
module.exports = {
|
|
config: {
|
|
type: 'scatter',
|
|
data: {
|
|
datasets: [{
|
|
data: [{x: 0, y: 0}, {x: 1, y: 1}, {x: 2, y: 2}],
|
|
backgroundColor: 'red',
|
|
radius: 1,
|
|
hoverRadius: 0
|
|
}],
|
|
},
|
|
options: {
|
|
scales: {
|
|
x: {display: false},
|
|
y: {display: false}
|
|
},
|
|
plugins: {
|
|
legend: false,
|
|
title: {
|
|
display: true,
|
|
text: 'Title Text',
|
|
},
|
|
subtitle: {
|
|
display: true,
|
|
text: 'SubTitle Text',
|
|
},
|
|
filler: false,
|
|
tooltip: false
|
|
},
|
|
},
|
|
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
height: 400,
|
|
width: 400
|
|
}
|
|
}
|
|
};
|