ui: fix chart label alignments
This commit is contained in:
parent
44a1d96d2d
commit
fc542cd7d2
3 changed files with 8 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ function ORBarChart(props: BarChartProps) {
|
|||
type: 'value',
|
||||
data: undefined,
|
||||
name: props.label ?? 'Number of Sessions',
|
||||
nameLocation: 'middle',
|
||||
nameLocation: 'center',
|
||||
nameGap: 45,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue