Skip to content

Annotations overflow onto y-axis #2757

Closed
Closed
@jenniarg21

Description

Description

I created a timeline chart with a date range slider however I found a bug. My timeline chart has annotations and goal lines. I'm using the zoomX() method on the range slider to adjust the zoom bounds. Whenever the annotations and/or goal lines are outside of the starting zoomX() minimum value, they will overflow and overlap the y-axis labels (if it passes the width of the y-axis labels, it will not show as is intended). I tested this out in a line chart and it work as intended; my assumption is that this only occurs when the x-axis is of type 'datetime'.

Steps to Reproduce

  1. Add an annotation or goal on a timeline chart.
  2. Use the zoomX() method to zoom in to the chart so that the annotation/goal line is no longer within the minimum bounds of the zoom.

Expected Behavior

Annotations and goals should not be visible when they are over the minimum zoom x-axis value.

Actual Behavior

Annotations and goals are visible and overlap the y-axis labels.

Screenshots

image

Reproduction Link

Here's a codepen with simplified code showing the bug:
https://codepen.io/jenniarg21/pen/mdMLpjX

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions