chartjs-plugin-datalabels icon indicating copy to clipboard operation
chartjs-plugin-datalabels copied to clipboard

clamp does not work properly for bar chart with align==='end' and anchor==='end'

Open tearfur opened this issue 3 years ago • 0 comments

[email protected] [email protected]

config = {
  type: 'bar',
  /* ... */
  options: {
    /* ... */
    datalabels: {
      clamp: true,
      anchor: 'end',
      align: 'end'
    }
  }
}

If the bar is as long as the y-axis, then the data label won't show.

tearfur avatar Oct 11 '22 01:10 tearfur