Reputation: 69
is it posible add a label per column on the bottom?
Each dataset is a subset (subactivities) and i want to add the principal activity per column. The black labels (on the bottom) are states and i want to add the principal activity between it and columns
[EDIT]
trying with datalabels plugin:
plugins: {
legend: { display: true },
datalabels: {
labels: {
name: {
align: 'top',
color: 'RED',
formatter: function(value, ctx) {
return value
},
},
value: {
align: 'bottom',
formatter: function(value, ctx) {
return ctx.dataset.stack
},
rotation: 0,
},
},
},
},
but, i think i cant write the unique activite by column out of chart, between chart and state legends.
[EDIT 2]
i can show only one activity per column, but o dont know how to show them off the chart
[SOLVED]
value: {
align: 'bottom',
anchor: 'start',
offset: 0,
Upvotes: 2
Views: 390