Skip to content
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

Add sample how to select annotations #751

Merged
merged 3 commits into from
May 31, 2022
Merged

Add sample how to select annotations #751

merged 3 commits into from
May 31, 2022

Conversation

stockiNail
Copy link
Collaborator

This PR is adding a sample to the doc to show how you can select an annotation.

@stockiNail stockiNail added this to the 2.0.0 milestone May 24, 2022
@stockiNail
Copy link
Collaborator Author

The sample was created to address the discussion #750.
How you can see, the events hooks are storing the status, about the selected elements, and changing the cursor on canvas, in "external" references. The #750 discussion is proposing to have a share object in the context (the reference stored in the state of plugin) in order to share these additional info across the annotations (by event hooks).

@stockiNail stockiNail requested review from kurkle and LeeLenaleee May 24, 2022 16:56
@stockiNail stockiNail merged commit b1854e8 into chartjs:master May 31, 2022
@stockiNail stockiNail deleted the selectionSample branch May 31, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants