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

When no data, annotations is shown #1832

Closed
pacocom opened this issue Aug 11, 2020 · 0 comments
Closed

When no data, annotations is shown #1832

pacocom opened this issue Aug 11, 2020 · 0 comments
Labels
annotations bug Something isn't working

Comments

@pacocom
Copy link

pacocom commented Aug 11, 2020

Bug report

When no data, annotations is shown

Codepen

https://codepen.io/pacocom/pen/xxVwgaQ

Explanation

  • What is the behavior you expect?
    When no data, all annotations should be hidden or add property show inside property "annotations" for show: false, example:
annotations: {
    position: "front",
    yaxis: [
      {
        show: !![].length, // Please, create/add this property
        y: 3,
        y2: null,
        borderColor: "red",
        fillColor: "red",
        strokeDashArray: 0,
        label: {
          borderColor: "transparent",
          style: {
            color: "red",
            background: "transparent"
          },
          text: "Annotation text",
          textAnchor: "start",
          position: "left"
        }
      }
    ]
  },
  • What is happening instead?
    When no data, annotations is shown

  • What error message are you getting?
    No error message.

@junedchhipa junedchhipa added annotations bug Something isn't working labels Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
annotations bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants