Skip to content

yaxis.tickAmount does not work with float value with a label formatter in it. #2086

@sdutwsl

Description

@sdutwsl

Bug report

When the formater returns a value, the next value to format is going to be incrrect.
For example, look at the below codepen.

If change the formatter of label to undefined, tickAmount will work fine
If change the formatter of label to console.log, we will see that correct value is printed in the console
But if change the formatter to v=>v that a function returns a value, there will be only 3 ticks of yaxis

Codepen

https://codepen.io/sdutwsl/pen/vYXLpEV

Explanation

  • What is the behavior you expect?
    There should be six ticks default.

  • What is happening instead?
    With formatter, only few ticks was displayed.

  • What error message are you getting?
    There is 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