Skip to content

Unnatural values on y axis #619

@lukaszflorczak

Description

@lukaszflorczak

Codepen

Zrzut ekranu 2019-05-24 o 09 44 32

The red line uses the left yaxis, blues use the right one.

https://codepen.io/lukaszflorczak/pen/yrpWgZ?editors=1010

Explanation

When I have a series where the only value is 1 and 0 and I also have decimalsInFloat = true (I have always integer values only) in yaxis option, the chart generates values: 0.2, 0.4, 0.6 etc. and rounds them to 0, 0, 0, 1, 1, 1.

I expect that is should be only one 0 and one 1 or 0, 1, 2, 3 etc. in this case.

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