Replies: 2 comments 9 replies
-
Hi Samcov, An array for the pointHitRadius will specify the size in pixels of each datapoint's pointHitRadius. In your case with [0,0,0,0,20] this would indicate that the first 4 items would have an pointHitRadius of 0px and the last one would have an pointHitRadius of 20px. By default a bar chart has a rectangle shape pointHitRadius. While it is not clear what chart type you use but I suspect a line chart. For a line chart you could assign the pointstyle into a specific shape. That will automatically align it.
If you try to build like a button/custom option in that case you could create a tiny function that would make it work. But some more information would be needed before going this route. |
Beta Was this translation helpful? Give feedback.
-
You are actually VERY close to a possible solution if it's performant!!! "The pointStyle argument accepts the following type of inputs: string, Image and HTMLCanvasElement" That being the case, it's possible to place a canvas element at each point & draw whatever you like!!! I've seen code to do that with an image, so it's likely the same, I just have to find that code again, LOL!!! Good Find! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I can't find the documentation for pointHitRadius as an array anywhere, a simple number, yes, but nothing else.
I want to make the hit radius a rectangle as shown in the picture. I see that it can be described as an array like this,

pointHitRadius: [0,0,0,0,20], but I don't know what the data in the array represents. Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions