chartjs / chartjs-plugin-annotation

Annotation plugin for Chart.js
MIT License
607 stars 328 forks source link

Normalize all annotation to be based on box model (x, y, width, height) #532

Closed kurkle closed 2 years ago

kurkle commented 2 years ago

For consistency and thus easier handling of annotations regardless of type.

Could be used for rough collision detection for example.

stockiNail commented 2 years ago

Proposal, maybe can help:

elementProps

stockiNail commented 2 years ago

REMINDER: Breaking change: https://github.com/chartjs/chartjs-plugin-annotation/pull/655#issuecomment-1024531750

stockiNail commented 2 years ago

This normalization will also enable (with common "properties"):

  1. inner labels components (in line and box annotation) as sub-elements, based on the box
  2. animation of labels