dashbird beter ui
This commit is contained in:
@@ -239,7 +239,14 @@ const trendChartOptions = computed(() => ({
|
||||
legend: { position: 'top', horizontalAlign: 'right' },
|
||||
xaxis: {
|
||||
categories: (data.ordersTrend ?? []).map((d: OrdersTrendPoint) => jdate(d.date)),
|
||||
labels: { rotate: 0 },
|
||||
// 30 daily labels overlap at rotate: 0 (see screenshot); angle them so
|
||||
// each date stays legible instead of running into its neighbours.
|
||||
labels: {
|
||||
rotate: -45,
|
||||
rotateAlways: true,
|
||||
hideOverlappingLabels: true,
|
||||
style: { fontSize: '12px', fontWeight: 500 },
|
||||
},
|
||||
},
|
||||
tooltip: { shared: true },
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user