Using canvas as content
const config = {
type: 'doughnut',
data,
options: {
aspectRatio: 2,
plugins: {
annotation: {
annotations: {
annotation
}
}
}
}
};
const annotation = {
type: 'doughnutLabel',
content: Utils.getHouse(),
};
const DATA_COUNT = 12;
const MIN = 0;
const MAX = 100;
const numberCfg = {count: DATA_COUNT, min: MIN, max: MAX, decimals: 0};
const data = {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
datasets: [{
data: Utils.numbers(numberCfg)
}]
};