Disable chart tooltips on admin panel

This commit is contained in:
Pixeldrain-Server committed 2023-09-14 13:16:07 +02:00
1 parent e9e52a98d2
commit cc90ccec48
2 files changed
+7 -3

No files matched your search

+5 -1
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,
}
}
}
},
}
}
);