Skip to content

[Bug] Missing Documentation for renderItem() #19241

@xge

Description

@xge

Version

5.4.3

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=custom-profile

Steps to Reproduce

Trying to reproduce this example in TypeScript: https://echarts.apache.org/examples/en/editor.html?c=custom-profile I get deprecation warnings for these lines:

{
  x: params.coordSys.x,
  y: params.coordSys.y,
  width: params.coordSys.width,
  height: params.coordSys.height
}

Current Behavior

The actual output from tsc:

error TS2339: Property 'x' does not exist on type 'CustomSeriesRenderItemParamsCoordSys'

This happens for all variables x, y, width, and height.

Expected Behavior

No TS errors.

Environment

- OS: Windows 11
- Browser: Electron@27
- Framework: Vue@3

Any additional comments?

I suspect the API of renderItem has changed, but when I compare this to the official documentation of renderItem, it is unclear to me what needs to be changed on my end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions