Skip to content

[Bug] minInterval do not work when set alignTicks:true for multiple yAxis #18876

@Chellhooo

Description

@Chellhooo

Version

5.4.2

Link to Minimal Reproduction

https://codepen.io/chellhoo/pen/dyQZxxx

Steps to Reproduce

  1. show multiple yAxis and set alignTicks: true
  2. set minInterval: 1 for the second yAxis
  3. let the data interval of the second series small
{
	yAxis: [
		{
			type: 'value',
			name: 'Precipitation',
			alignTicks: true,
		},
		{
			type: 'value',
			name: 'Temperature',

			// expect to show integer
			minInterval: 1, 
			alignTicks: true,
		},
	],
	series: [
		// ...
		{
			name: 'Temperature',
			type: 'line',
			yAxisIndex: 1,

			// data
			data: [1],
		},
	]
}

Current Behavior

in the second yAxis, its axis label show as decimal

Expected Behavior

expect to show integer in the second yAxis

Environment

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions