Checklist
Affected version
2.4.0
Steps to reproduce the bug
- Try to set font size via
new LegendLabels().setFontSize(5)
- Observe created json structure
- 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
Checklist
Affected version
2.4.0
Steps to reproduce the bug
new LegendLabels().setFontSize(5)Expected behavior
Font size changed from default 12 to 5
Actual behavior
The legend has still the fontsize 12
Additional information