Add custom grid styling to chart axes

Configured grid lines, border drawing, and border width for both y and x axes in the ActivityStreamsLineChartComponent to improve chart readability and appearance. #160 #340
This commit is contained in:
João Vitória Silva
2025-11-15 00:12:17 +00:00
parent 3560e900b7
commit 1fb333a606

View File

@@ -407,7 +407,12 @@ export default {
beginAtZero: false,
position: 'left',
// Reverse the y-axis for pace so that lower times plot higher
reverse: props.graphSelection === 'pace'
reverse: props.graphSelection === 'pace',
grid: {
lineWidth: 1,
drawBorder: true,
borderWidth: 1
},
},
y1: {
beginAtZero: true,
@@ -417,7 +422,12 @@ export default {
x: {
ticks: {
maxTicksLimit: 10, // Limit x-axis labels to approximately 10 for better readability
autoSkip: true
autoSkip: true,
},
grid: {
lineWidth: 1,
drawBorder: true,
borderWidth: 1
}
}
},