Skip to content

[Bug] smoothMonotone generates saddle points #21532

@akloeckner

Description

@akloeckner

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

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 home-assistant/frontend#29907 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions