Skip to content

Labels with drawTime: beforeDatasetsDraw #243

Description

@joshkel

I wanted my datasets to be drawn on top of my line and box annotations, so I used drawTime: 'beforeDatasetsDraw'. However, that causes the datasets to overwrite the lines' and boxes' labels, which doesn't look good at all:

image

It seems to me that, even if annotation lines and boxes are drawn below the datasets, the labels for those annotations should be drawn on top of datasets. (At least, I can't think of any circumstances where you'd want a text label but are okay with it being partially obscured by your data...)

I saw similar questions and discussions (#94, #147, #161), although my request is a bit different - I'm proposing moving label-drawing to a separate loop that's always after the datasets (ignoring drawTime), instead of #161's approach of moving label-drawing to a separate loop within the configured drawTime.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions