Skip to content

annotation #742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
cldougl opened this issue Apr 10, 2017 · 1 comment
Open
2 tasks

annotation #742

cldougl opened this issue Apr 10, 2017 · 1 comment

Comments

@cldougl
Copy link
Member

cldougl commented Apr 10, 2017

@alexcjohnson
Copy link
Collaborator

This needs to wait for plotly/plotly.js#1573 to be released, which will fix this event but require the annotation to have the attribute captureevents: true.

In https://plot.ly/javascript/text-and-annotations/#styling-and-formatting-annotations - the last part:

.on('plotly_clickannotation', function(event, data) {
    Plotly.relayout('myDiv', 'annotations[' + data.index + ']', 'remove');
});

is supposed to mean that you can click on an annotation and it will disappear. But that doesn't work. You can click on the data point again to get the annotation to disappear, but not on the annotation.

While you're in there, might be good to modernize the relayout calls... to use myPlot instead of 'myDiv' and null instead of 'remove' (which is deprecated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants