Skip to content

Axis labelling in stacked bar chart incorrect when only one series contains non-zero values #397

@stephenharris

Description

@stephenharris

Codepen

https://codepen.io/anon/pen/eXymGW

Explanation

  • What is the behavior you expect?

I expect the y axis to display 0, 1, 2, 3,...

  • What is happening instead?

It shows 0, 1, 1, 2, 3

  • What error message are you getting?

none

Other observations

  • Specifying tickAmount: 1 for the yaxis (or xaxis if its rotated) fixes the issue
  • It only impacts low data-points. E.g. increase the value for "Striking Calf" from 3 to 4 and the issue doesn't occur.
  • If there is more than one non-empty series, the bug doesn't occur. E.g. if you change Marine Sprite from 0 to 1, or set it to -1

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