Skip to content

Add sample how to select annotations#751

Merged
stockiNail merged 3 commits into
chartjs:masterfrom
pepstock-org:selectionSample
May 31, 2022
Merged

Add sample how to select annotations#751
stockiNail merged 3 commits into
chartjs:masterfrom
pepstock-org:selectionSample

Conversation

@stockiNail
Copy link
Copy Markdown
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
Copy Markdown
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 LeeLenaleee and kurkle 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