Skip to content

LegendLabels.setFontSize not working #285

Description

@dhelml

Checklist

  • I am able to reproduce the bug with the latest version
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.

Affected version

2.4.0

Steps to reproduce the bug

  1. Try to set font size via new LegendLabels().setFontSize(5)
  2. Observe created json structure
  3. Observe created chart

Expected behavior

Font size changed from default 12 to 5

Actual behavior

The legend has still the fontsize 12

Additional information

  • Primefaces uses chart.js version 4.4.2
  • Chart.js docu describes font as an own object within label
  • font family also depends on the legends.font object

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions