Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TagAnnotation does not clip to inside the AxisGuide while LineAnnotation does #93

Closed
jamesblasco opened this issue Apr 22, 2022 · 2 comments

Comments

@jamesblasco
Copy link
Contributor

Screen.Recording.2022-04-22.at.11.11.30.mov

I have a graph where I add a vertical line at the start of each month. The line annotation does not render outside the graph bounds while the label does. Could they have the same behaviour? Or be able to control it

[
            LineAnnotation(
              dim: Dim.x,
              value: DateTime.now(),
              variable: 'date',
              style: StrokeStyle(
                color: Colors.grey,
              ),
            ),
            TagAnnotation(
              label: Label(
                DateFormat('MMM').format(value: DateTime.now()),
                LabelStyle(
                  offset: Offset(7.5, 0),
                  align: Alignment.centerRight,
                  style: TextStyle(color: Colors.grey, fontSize: 14),
                ),
              ),
              values: [item.date, monthLabelYPosition],
              variables: ['date', 'value'],
            ),
]
@entronad
Copy link
Owner

Usually, for annotations, lines and areas need clip while label and figures doesn't.

But I haven't considered your situation.

I shall add a clip switch for labels and figures.

@entronad
Copy link
Owner

Added in v0.10.1

@entronad entronad closed this as completed May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants