apache / apache/echarts

[Bug] axis.Interval has no effect for logarithmic charts

Open
#19,639 3 comments 3 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.0

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-log&code=PYBwLglsB2AEC8sDeAoWtJgDYFMBcya6GOAHmAQOQAywA5rAIKkQDOlANEergGYWxKAYxzQwOAE6UiAXy7owwYFkggCqYhgkQ6dSVQjiAtp26xewCUYCGYcRKpJrM2AB4ARhID0APiTuXdSEZaXQ5Ilw9aAATdTM-AUoE0Nhw9FJmNjjNMABPEHxBIVscOktc001oayNCylJK4lYQLENqCGhCpFhWAAtgAHcCXmssVhxU-WJo22sCAG1KRk5BACEVygBhDYARDYBRDYAxDYBxDYAJDYBJSgBdWSm6bVjCTQSqAGYAUkb0bTovUSABZflN0O5gHZgEYvmCzEIYGBrB1qNZ3DgsAQwBIAK44R5EXKZVjZYh5ApULD0P6waq1KgVcGwDr2ABuowIAFoAIzMowdSwAZRabQ6XTM6D6g2xeIJmhkhKlkggOFJsHmZg0mjpNTqtDoACZaQp8nVWp0TbAZsiFnzYJ8OLAAJxOw0AdidAA57YbgZ7YO7gb7DYbHbAAGxR50PBXM7VVPVUA2fK0U83iq02uYa31O4Hep08iNOz6Gp0RguwHmGr1ugCsEdjxDSxATxHp-voPK8xuZpspggtOCzswWkuIPNgXlg5Yn6CnM4L8-r09gdZXi-rJc3a7L_cna8rB4Xa5rG51h5nhsbJ9XM_rNYnzbCRAeMgA3EA

### Steps to Reproduce

Using the log axis example on the docs website:
```
option = {
title: {
text: 'Log Axis',
left: 'center'
},
tooltip: {
trigger: 'item',
formatter: '{a}
{b} : {c}'
},
legend: {
left: 'left'
},
xAxis: {
type: 'category',
name: 'x',
splitLine: { show: false },
data: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I']
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
yAxis: {
type: 'log',
name: 'y',
interval: -1, // added this parameter. used log space as per docs.
minorSplitLine: {
show: true
}
},
series: [
{
name: 'Log2',
type: 'line',
data: [1, 3, 9, 27, 81, 247, 741, 2223, 6669]
},
{
name: 'Log3',
type: 'line',
data: [1, 2, 4, 8, 16, 32, 64, 128, 256]
},
{
name: 'Log1/2',
type: 'line',
data: [
1 / 2,
1 / 4,
1 / 8,
1 / 16,
1 / 32,
1 / 64,
1 / 128,
1 / 256,
1 / 512
]
}
]
};
```

Similar issue in 2018: https://github.com/apache/echarts/issues/8014

### Current Behavior

There's no change to the chart when you modify the interval parameter.
image

### Expected Behavior

The number of axis lines should increase.

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.