echarts yAxis option min=0 and chart values = 0 are handled badly when axis type is "log"

v7pvogib  于 2022-10-20  发布在  Echarts
关注(0)|答案(2)|浏览(147)

Version

4.7.0

Steps to reproduce

  1. Create a smoothed line chart with yAxis of type "log" instead of "value", and "min" option to its default of 0.
  2. Enter a series with or without zero values and some values above, say, 100

What is expected?

A graph should appear with minimum yAxis unlabeled or 1 and a maximum yAxis of DataMax, with an uninterrupted smooth line dipping down to the minimum in correspondence with zero values.

What is actually happening?

A graph appears with maximum yAxis of 10, with an interrupted line with blanks in correspondence of zero values. If all values are above 10, then the graph appears to be empty.

There is no "correct" behaviour since you cannot plot values below or equal to zero in a logarithmic chart. Nonetheless, in the interest of user experience, such illegal values should be treated reasonably - for example considered equal to max("0.01", dataMin) if absolutely nothing else works.

This is probably connected with bug #9801 (in both cases zero values determine "strange" behaviour).

rkttyhzu

rkttyhzu1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure thatyou have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical questions.

If you are interested in the project, you may also subscribe our mail list .

Have a nice day! 🍵

pexxcrt2

pexxcrt22#

I'm facing the same issue. Any updates on it?

相关问题