Hi there,
I couldn’t get tickformat to work properly with ChartJs v4. It works with v2 though, but there I can’t get enough spacing between chart and legend…anybody a valid example of using tick format?
{
type: 'pie',
data: {
labels: ['A', 'B'],
datasets: [{ data: [150000, 6000] ,
backgroundColor: ['#2C3C5B','#0AC5A8'],
borderWidth: 3}]
},
options: {
layout: {
padding: 30
},
plugins: {
tickFormat: {
notation: 'EUR ',
locale: 'en-US',
},
legend: {
labels: {
padding: 20
},
position: 'bottom'
},
datalabels: {
anchor: 'end',
align: 'center',
color: '#FFFFFF',
backgroundColor: '#869CB8',
borderColor: '#5E738E',
borderWidth: 1,
borderRadius: 5,
},
}
},
}