echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Type log axis cant control axisTick interval

Open mecha9 opened this issue 8 years ago • 10 comments

One-line summary [问题简述]

Log axis sets ticks equal distance apart instead of equal numeric change and this cannot be over-ridden.

Explanation

For Candlestick chart, log axis is better, but none of these properties:

  • splitNumber
  • interval
  • logBase
  • axisTick.interval

Can make the y-axis have set intervals, e.g. 5 - 10 - 15- 20 or control number of intervals. Echarts makes the axisTicks force to be equal distance apart so they go 1 - 10 - 100 axisTicks. http://echarts.baidu.com/examples/editor.html?c=line-log

Can log chart have y-axis like log chart on right in this picture? https://i.investopedia.com/inv/articles/site/logvslinear.gif

The axis tick distance is lowered instead of changing the numeric interval.

I see the interval property maybe can do this, but I cant get it to work. https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.interval

Version & Environment [版本及环境]

Latest version

mecha9 avatar Mar 23 '18 23:03 mecha9

+1 on this. I'd like to use a log Y axis on your candlestick example. However, if I add to the YAxis section, so that I have:

          yAxis: [
       {
           scale: true,
           splitArea: {
               show: true
            },
            type: "log",
            min: 15000,
            max: 25000,
            interval: 2000
       },

to the first YAxis section, I get just two axis labels: 15000 and 25000. In this case, I believe it should be five.

BugZappr avatar Jul 16 '18 07:07 BugZappr

Has anyone solved this yet? I need something similar--my log axis won't update with new values no matter what setting I use for the interval. I'm using a custom chart if that makes any difference. Thanks

nsarka avatar Aug 23 '18 00:08 nsarka

+1 We need this too (but for regular line charts)

kristian2x avatar Apr 24 '19 15:04 kristian2x

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Sep 03 '21 21:09 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Sep 11 '21 21:09 github-actions[bot]

Up :arrow_up: Faced with the same issue

rhryhorenko avatar Oct 01 '21 19:10 rhryhorenko

same issue here, any news?

andream404 avatar Oct 18 '21 09:10 andream404

Same issue, any updates?

mmastand avatar Feb 22 '24 17:02 mmastand

+1 Highcharts for example have this feature

aleixtusetbadia avatar Mar 22 '24 23:03 aleixtusetbadia

interval在对数轴下设置不起作用啊

anke1460 avatar Dec 25 '24 06:12 anke1460