apache / apache/echarts

[Bug] negative/zero logarithmic 如何让对数轴支持-负数和0

Open
#17,961 2 comments 0 reactions 0 assignees View on GitHub
new-feature
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
15h 17m
Merged PRs (30d)
5

Description

### Version

5.4.0

### Link to Minimal Reproduction

_No response_

### Steps to Reproduce

line图表中,有办法设置让对数轴支持负数和0?

例如hightchart是通过这个[方法](https://stackoverflow.com/questions/63518108/highcharts-negative-logarithmic-scale-solution-stopped-working)。

echart如何设置呢?

### Current Behavior

### Expected Behavior

### Environment

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

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file, test, or minimal reproduction is named. Start by tracing how ECharts configures logarithmic axes for line charts and review the linked Highcharts approach. Done would require a reproducible decision and documented or implemented behavior for negative and zero values, with relevant tests if code changes are made.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.