0

I want my Y-Axis on my grid to increment by 1 (for example: 1,2,3,4,5 and so on).

Currently I have it set like this:

axes: [{
    type: 'numeric',
    position: 'left',
    minimum: 0,
    increment: 1,
    title: {
        text: '',
        fontSize: 15
    },
    fields: 'total',
    grid: true
},

In my test data, the field 'total' current largest value is 3. If I set the 'maximum' on the axes to 3, it goes into decimal places and its increment changes to 0.2, but if I set it to 10, it increments correctly.

4

1 回答 1

1

设置minimummaximum属性。添加属性并将其设置为和majorTickSteps之间的差异。所以:, , .minimummaximumminimum: 0maximum: 3majorTickSteps: 3

于 2017-09-19T14:15:02.393 回答