Skip to content

[Bug] Pie label-formatter show undefined for {c} while echarts.ts compiled to echarts.js #18729

@adoin

Description

@adoin

Version

5.4.2

Link to Minimal Reproduction

https://github.com/adoin/echarts-bus/tree/repro/c%25inFormatter

Steps to Reproduce

  1. get sample code form my echarts fork.
  2. npm i and npm run dev.
  3. navicate to http://127.0.0.1:8080/test/pie-label.html
  4. show there is undefined in the context which from {c}
    image

Current Behavior

Here is my digging:
In a moment, there is good result for formatter
1
Then next step, it become to:
2

The line: 163 never break in so I can not find out what's the problem.
What's intresting is, If I remove echart.js and echarts.js.map.
All things going fine.

Expected Behavior

{c} should be convert to value of series data

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions