question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xAxis.axisLabel.interval doesn't work in scatter charts

See original GitHub issue

Version

4.3.0

Reproduction link

https://www.echartsjs.com/examples/zh/editor.html?c=scatter-simple

Steps to reproduce

Open the official Basic scatter chart example, edit xAixs to be

xAxis: {
  axisLabel: {
    interval: 0
  }
}

What is expected?

X-axis displays labels for every value.

What is actually happening?

Axis labels are not affected.


In my case, i’m using a scatter chart whose x-axis values range from 0-100. By default the axis displays labels at interval of 20, but I need the interval to be 5. I set xAxis.axisLabel.interval to be 5 but it didn’t take effect.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
SevenOutmancommented, Oct 14, 2019

@pissang Thanks for your explanation. My usecase can be solved by setting xAxis.type to be 'category' explicitly.

However axisLabel.interval on value axis still doesn’t take effect when set a value larger than 0.

0reactions
Jamshed7664commented, Jul 12, 2022

use like this inside axisLabel : axisLabel:{ interval:1

          },
Read more comments on GitHub >

github_iconTop Results From Across the Web

xAxis.axisLabel.interval doesn't work in scatter charts #11359
In my case, i'm using a scatter chart whose x-axis values range from 0-100. By default the axis displays labels at interval of...
Read more >
Setting axis label interval unit - Microsoft Community
Yes, I usually use a scatter chart to display the recorded data (noise levels) and it works fine. However, using the scatter chart...
Read more >
How to Change the Intervals on an X-Axis in Excel
Type in the interval that you want to use for the X-axis labels. The first axis label displays, then Excel skips labels until...
Read more >
Can't control x-axis intervals? - Microsoft Power BI Community
Solved: Hi PBI community, I can't seem to manipualte the x-axis intervals on my column chart visualization. My data is non-date data (it's ......
Read more >
SSRS chart does not show all labels on Horizontal axis
To fix this, under the "Chart Axis" properties set the Interval value to "=1". Then all the labels will be shown. Share.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found