5
0
mirror of https://github.com/AJMicke/KickerELO.git synced 2026-03-11 13:31:02 +01:00

Chart: Always show all labels

This commit is contained in:
Leon Marz
2025-05-21 12:24:10 +02:00
committed by AJMicke
parent 57f869cd4b
commit eb36a25373

View File

@@ -30,6 +30,10 @@ public class Chart extends Component {
// Font size // Font size
js += "Chart.defaults.font.size = 16;"; js += "Chart.defaults.font.size = 16;";
// Scales
js += "Chart.defaults.scales.category.ticks.autoSkip = false;";
js += "Chart.defaults.scales.category.offset = true;";
// Chart // Chart
js += "new Chart(document.getElementById('chart'), {type: 'line', "; js += "new Chart(document.getElementById('chart'), {type: 'line', ";
js += "options: {showLine: false, pointRadius: 7, plugins: { legend: { display: false}}, layout: { padding: 10}}, "; js += "options: {showLine: false, pointRadius: 7, plugins: { legend: { display: false}}, layout: { padding: 10}}, ";