diff --git a/apps/www/src/lib/registry/new-york/ui/chart/ChartSingleTooltip.vue b/apps/www/src/lib/registry/new-york/ui/chart/ChartSingleTooltip.vue index 49ca011c..7d05af26 100644 --- a/apps/www/src/lib/registry/new-york/ui/chart/ChartSingleTooltip.vue +++ b/apps/www/src/lib/registry/new-york/ui/chart/ChartSingleTooltip.vue @@ -43,7 +43,7 @@ function template(d: any, i: number, elements: (HTMLElement | SVGElement)[]) { } else { const style = getComputedStyle(elements[i]) - const omittedData = [{ name: data.name, value: props.valueFormatter(data[props.index]), color: style.fill }] + const omittedData = [{ name: Object.values(data)[0], value: props.valueFormatter(data[props.index]), color: style.fill }] const componentDiv = document.createElement('div') const TooltipComponent = props.customTooltip ?? ChartTooltip createApp(TooltipComponent, { title: d[props.index], data: omittedData }).mount(componentDiv)