Skip to content

BeginAtZero and stepsize not working on radar chart #4209

@borjaevo

Description

@borjaevo

I want to show only integers in labels of a radar chart. I check many solutions i found on here and stackoverflow.
I set stepsize:1 and seems is doing nothing... when max scale value is 1 or 2 it show many float values like 0.2,0.4,0.6...
Also, i check this:

userCallback: function(label, index, labels) {
                           // when the floored value is the same as the value we have a whole number
                           if (Math.floor(label) === label) {
                               return label;
                           }
}        

and is not working.

Also i set min:0 on my scale. But when every value of my chart is 0, scale is between -1 and 1.

Not sure if this an issue or im doing something wrong.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions