chartjs / chartjs/chartjs-plugin-annotation

Trying to get the Box Image-As-Content to render the same size as the box

Open
#975 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
623
Forks
377
PR merge metrics
No merged PRs in 30d

Description

Hi, I am trying to get the image-as-content to take up the same area as the box annotation, but the image doesn't seem to be using the same coordinate system as the box annotation and doesn't scale to fit it as a result:

e.g. with a box annotation rendered at 25,25 -> 75,75 and an image width & height of 50:

Image

Full annotation config:

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.