ui: fix chart label alignments

This commit is contained in:
nick-delirium 2025-02-21 10:33:10 +01:00
parent 44a1d96d2d
commit fc542cd7d2
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
3 changed files with 8 additions and 5 deletions

View file

@ -53,7 +53,7 @@ function ORBarChart(props: BarChartProps) {
type: 'value',
data: undefined,
name: props.label ?? 'Number of Sessions',
nameLocation: 'middle',
nameLocation: 'center',
nameGap: 45,
};

View file

@ -74,8 +74,8 @@ function ColumnChart(props: ColumnChartProps) {
xAxis: {
type: 'value',
name: label ?? 'Total',
nameLocation: 'middle',
nameGap: 45,
nameLocation: 'center',
nameGap: 35,
},
yAxis: {
type: 'category',

View file

@ -69,8 +69,11 @@ function ORLineChart(props: Props) {
},
yAxis: {
name: props.label ?? 'Number of Sessions',
nameLocation: 'middle',
nameGap: 45,
// nameLocation: 'center',
// nameGap: 40,
nameTextStyle: {
padding: [0, 0, 0, 15],
}
},
tooltip: {
...defaultOptions.tooltip,