Disable chart tooltips on admin panel

This commit is contained in:
2023-09-14 13:16:07 +02:00
parent e9e52a98d2
commit cc90ccec48
2 changed files with 7 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ let chart_element
let chart_object
export let data_type = ""
export let legend = true
export let tooltips = true
export const chart = () => {
return chart_object
@@ -67,6 +68,9 @@ onMount(() => {
boxHeight: 12,
}
},
tooltip: {
enabled: tooltips,
},
},
layout: {
padding: {
@@ -107,7 +111,7 @@ onMount(() => {
drawBorder: false,
}
}
}
},
}
}
);