mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 08:17:59 -05:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user