Skip to content

When no data, annotations is shown #1832

@pacocom

Description

@pacocom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions