Replies: 1 comment 1 reply
-
Yep, that's definitely possible. You can add a tooltip formatter to to the const primaryAxis = React.useMemo<
AxisOptions<typeof data[number]["data"][number]>
>(
() => ({
getValue: (datum) => (datum.primary as unknown) as Date,
formatters: {
tooltip: (value: Date | null) => {
if (!value) return "";
return value.toLocaleString();
}
}
}),
[]
); Added it to a codesandbox so you can tinker around a bit: https://codesandbox.io/s/crimson-rain-4m3fe?file=/src/components/Line.tsx |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way for the tool tip header to be customize some thing like the image below
Beta Was this translation helpful? Give feedback.
All reactions