diff --git a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue index 992260f9..a4a7c16a 100644 --- a/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue +++ b/apps/www/src/lib/registry/default/ui/chart-area/AreaChart.vue @@ -41,6 +41,8 @@ const emits = defineEmits<{ type KeyOfT = Extract type Data = typeof props.data[number] +const chartRef = Math.random().toString(36).substring(2, 9) + const index = computed(() => props.index as KeyOfT) const colors = computed(() => props.colors?.length ? props.colors : defaultColors(props.categories.length)) @@ -64,7 +66,7 @@ function handleLegendItemClick(d: BulletLegendItemInterface, i: number) { - +