apache / apache/echarts

[Bug] smoothMonotone generates saddle points

Open
#21,532 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

current

### Link to Minimal Reproduction

see below

### Steps to Reproduce

Use the ECharts help here:
https://apache.github.io/echarts-handbook/en/how-to/chart-types/line/basic-line/

Select a few points and set smoothMonotone to `x`.

With `smoothMonotone`:

Image

Without `smoothMonotone`:

Image

### Current Behavior

Setting the option generates saddle points at the actual data points.

### Expected Behavior

The graph should not have saddle points but simply be monotone.

### Environment

```markdown
ECharts help
```

### Any additional comments?

I found this when examining data shown in home assistant. The data was surprising to me until I realized it was actually a graphing artifact.

See https://github.com/home-assistant/frontend/issues/29907#issuecomment-4023994970

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.