mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 12:42:15 +01:00
add tooltips to weekly overview on dashboard
This commit is contained in:
@@ -107,6 +107,9 @@ const weekdays = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const option = ref({
|
const option = ref({
|
||||||
|
tooltip: {
|
||||||
|
trigger: 'item',
|
||||||
|
},
|
||||||
grid: {
|
grid: {
|
||||||
top: 0,
|
top: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
@@ -152,6 +155,11 @@ const option = ref({
|
|||||||
{
|
{
|
||||||
data: seriesData,
|
data: seriesData,
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
|
tooltip: {
|
||||||
|
valueFormatter: (value: number) => {
|
||||||
|
return formatHumanReadableDuration(value);
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user