-
How can I use an image instead of a colorful dot as a scatter point? I tried something like below but this doesn't work. const CustomScatterShape = () => {
return (
<Image src="/images/scatter.webp" alt="scatter" width="0" height="0" sizes="100vw" className="h-10 w-10 rounded-md object-cover" />
)
}
<Scatter data={trackAudioFeatures} fill="#93c5fd" shape={<CustomScatterShape />} /> |
Beta Was this translation helpful? Give feedback.
Answered by
jeadys
Nov 2, 2023
Replies: 2 comments 4 replies
-
An example here of images used in a graph |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, what component are you using for Image? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works indeed, thanks for the help. Here is the result