Vincent Vu

Results 18 comments of Vincent Vu

@jcubic literally a simplified version of what i wrote lol.

> as [@rubixvi](https://github.com/rubixvi) mentioned: > > The latest version of `eslint-config-eslint` now supports flat config, so you no longer need to use FlatCompat (`@eslint/eslintrc`). Please check out its docs before...

``` "use client" import * as React from "react" import * as RechartsPrimitive from "recharts" import type { LegendPayload } from "recharts/types/component/DefaultLegendContent" import { NameType, Payload, ValueType, } from "recharts/types/component/DefaultTooltipContent"...

code was just updated again... Change: ``` const value = !labelKey && typeof label === "string" ? config[label as keyof typeof config]?.label || label : itemConfig?.label ``` to ``` const...

``` export type CustomTooltipProps = TooltipContentProps & { className?: string hideLabel?: boolean hideIndicator?: boolean indicator?: "line" | "dot" | "dashed" nameKey?: string labelKey?: string labelFormatter?: ( label: TooltipContentProps["label"], payload: TooltipContentProps["payload"]...

> Does anyone else get the following Error randomly? > > `Error: Cannot destructure property 'activeIndex' of 'z(...)' as it is undefined.` > > ``` > 3 | | ^...

That works, depending on how your data is structured and how you've designed your charts. I've tested in a live environment, in development Tooltip type may be fine. But when...

> @rubixvi, your ChartTooltipContent indicators are not consuming the border/bg variables and thus never showing. > > ```diff > - border-(--color-border) bg-(--color-bg) > + border-[var(--color-border)] bg-[var(--color-bg)] > ``` What are...