Incubator-echarts: Type log axis cant control axisTick interval

Created on 24 Mar 2018  ·  3Comments  ·  Source: apache/incubator-echarts

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

new-feature

Most helpful comment

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

All 3 comments

+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.

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

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

Was this page helpful?
0 / 5 - 0 ratings