Skip to content

Conversation

@kurkle
Copy link
Member

@kurkle kurkle commented Jan 15, 2022

Fix: #625

This fixes the issue, but leaves the resolution inconsistent (chart.options.plugins.annotation.annotations[id].someOption might resolve to different value than the element.options.someOption). This only happens in these rare cases though, where annotation id matches a key in options.plugins.annotation or defaults.plugins.annotation.

Maybe another solution is to change the current fallback of plugin.annotation to something else (for example plugin.annotation.annotationDefaults or removing it entirely and duplicating the common options in every element (as it mostly actually is now).

I'm not entirely happy with this yet, so will create as draft.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Annotations are not drawn if the id is animations or label

1 participant