mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-03 06:54:02 +01:00
36 lines
654 B
JavaScript
36 lines
654 B
JavaScript
module.exports = {
|
|
description: 'https://github.com/chartjs/Chart.js/issues/9278',
|
|
config: {
|
|
type: 'pie',
|
|
data: {
|
|
labels: ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k'],
|
|
datasets: [{
|
|
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11],
|
|
backgroundColor: 'red'
|
|
}]
|
|
},
|
|
options: {
|
|
plugins: {
|
|
legend: {
|
|
position: 'left'
|
|
}
|
|
},
|
|
layout: {
|
|
padding: {
|
|
top: 50,
|
|
left: 30,
|
|
right: 30,
|
|
bottom: 50
|
|
}
|
|
}
|
|
}
|
|
},
|
|
options: {
|
|
spriteText: true,
|
|
canvas: {
|
|
width: 400,
|
|
height: 300
|
|
},
|
|
}
|
|
};
|