How to add comments to a chart? #3728
Unanswered
tammybutow
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
What do folks recommend for enabling users to add a comment to a chart? When I say comments think google docs style comments - placed at a specific point on a chart to discuss it.
Was hoping that we would be able to allow a user to enter a comment mode and then click anywhere on a graph to add a comment to it using https://apexcharts.com/docs/options/chart/events/. However, this doesn’t appear to be possible.
If we use the regular
click
event there, the information we get back doesn’t include the graph position of where the click took place, only the coordinates of the mouse on the page. It would be extremely difficult to translate these values back to graph components.Another approach explored was using
dataPointSelection
, which would be triggered when the user clicks on a data point on the graph. This method would return the graph coordinates we couldn’t get with the click approach.However, when using line and area charts this method doesn’t work with custom or shared tooltips (which all our tooltips are) and when the tooltip
intersect
is turned on (which is turned off for all our graphs).Given the above discoveries, it seems it won't be feasible to overlay comments on points of the graph using Apexcharts as we had originally hoped.
We can add comments to a graph in general but not specific points.
Beta Was this translation helpful? Give feedback.
All reactions