Skip to content

Width for Label annotation doesn't work #828

@dmbaranov

Description

@dmbaranov

I want label annotation to take the whole width of the axis, but for some reason, xMin and xMax values are ignored.
I also tried to use width parameter, but it doesn't have any effect either.

In the docs, there's a line saying that "To enable to use the box positioning, the radius must be set to 0 or NaN.", but could you specify what radius it refers to? I wasn't able to find anything for both this plugin or ChartJS itself.

In the example below I used 2 annotations - box that can take the whole width of the axis and label that doesn't work.

Thank you!

https://jsfiddle.net/ntyv2cdb/17/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions