mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
update
This commit is contained in:
@@ -6,6 +6,7 @@ registerChartComponents();
|
||||
const props = defineProps<{
|
||||
datasets: any[],
|
||||
labels: string[],
|
||||
legendPosition?: "left" | "top" | "right" | "bottom" | "center" | "chartArea"
|
||||
}>();
|
||||
|
||||
const chartOptions = ref<ChartOptions<'bar'>>({
|
||||
@@ -40,7 +41,7 @@ const chartOptions = ref<ChartOptions<'bar'>>({
|
||||
plugins: {
|
||||
legend: {
|
||||
display: true,
|
||||
position: 'right',
|
||||
position: props.legendPosition ?? 'right',
|
||||
},
|
||||
title: { display: false },
|
||||
tooltip: {
|
||||
|
||||
Reference in New Issue
Block a user