Skip to content

annotation placement for ordinal axis bugs with version 1.20 #1154

Closed

Description

@Quath

Hi

I have a bar graph which had on the X axis a combination of 2 date strings ("04/2014") and text strings ("Status", "Difference", ...). On top of each bar was an annotation. The annotations were all defined the following way:
let annotation = { x: "mystring", y: 2354, text: "blabla", xanchor: middle, yanchor: top, }
with "mystring" being either one of the date strings, or one of the text strings.

With version 1.19.x I had no trouble, the annotations where all placed nicely on top of the bars, with the upgrade to version 1.20.x, all the annotations are placed in the X middle of the graph... The code itself didn't change between the upgrade...

Any idea?

Activity

  1. etpinard commented on Nov 16, 2016

    @etpinard
    Contributor

    Can you share a reproducible example?

    This is probably a side-effect of #1078

  2. Quath commented on Nov 16, 2016

    @Quath
    Author
  3. etpinard commented on Nov 16, 2016

    @etpinard
    Contributor
  4. Quath commented on Nov 16, 2016

    @Quath
    Author

    The annotations are in the center of the graph, and not on the bars...
    I expect the annotations to be at least within the bars if not on top

  5. etpinard commented on Nov 16, 2016

    @etpinard
    Contributor

    I see. The annotation reference x / y categories. This is regression.

    Thanks for posting!

  6. added
    bug
    on Nov 16, 2016
  7. Quath commented on Nov 16, 2016

    @Quath
    Author

    You're welcome!!

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions