Is there a way to make ticks in x and y axis use html content? I want to make it clickable like we can do with the bar or the legend #2483
-
As the title says. I need to be able to click on the x or y-axis tick and call an event. Any help is appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Achieved it by writing custom tick logic as seen below for x and y axis ticks but would be nice to have a clickevent available without doing this
and then use it when defining graph
|
Beta Was this translation helpful? Give feedback.
-
I agree it could be useful in certain cases, but this is not a common need IMHO, and the charts already have tens (if not hundreds) of props, so I think using a custom tick is not unreasonable here. |
Beta Was this translation helpful? Give feedback.
I agree it could be useful in certain cases, but this is not a common need IMHO, and the charts already have tens (if not hundreds) of props, so I think using a custom tick is not unreasonable here.