Skip to content

[Bug] Changing area chart to step chart is not removing the area shading #16769

@dirslashls

Description

@dirslashls

Version

5.3.1

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. Go to https://echarts.apache.org/examples/en/editor.html?c=area-basic

  2. At the end place the following code

setTimeout(() => {
  option.series.map(s => {
    s.step = 'end';
    delete s.areaStyle;
  });
  myChart.setOption(option,{ notMerge: true });
},4000);

Current Behavior

After the 4 seconds timeout, the chart changes to step line chart but the area shading is not removed.

Expected Behavior

The area shading should be removed.

Note that, if instead of setting the step to 'end', only the areaStyle is deleted, it does remove the area shading and show only the line chart as expected.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions