Skip to content

Single data point leads to annotations not rendering #1279

@wozzo

Description

@wozzo

Bug Report

Codepen

Modified Codepen

Explanation

  • What is the behavior you expect?
    Annotations to always appear regardless of data
  • What is happening instead?
    When only a single data point in the series the annotation isn't appearing.
    The annotations block has the following classes apexcharts-xaxis-annotations apexcharts-element-hidden leading to the annotations not being visible. Updating the options passed in after the initial render seems to get the annotations to appear again.
  • What error message are you getting?
    No error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions