[Bug] The documentation for EChartsInitOpts
has a type error about height and width
#17667
Labels
bug
difficulty: easy
Issues that can be fixed more easily than the average.
en
This issue is in English
typescript
Version
master c9e9a02
Link to Minimal Reproduction
Just a documentation error.
Steps to Reproduce
Open https://echarts.apache.org/en/api.html#echarts.init which states that both
width
andheight
are of typenumber|string
. We should therefore expect https://github.com/apache/echarts/blob/master/src/core/echarts.ts or https://github.com/apache/echarts/blob/5.3.3/src/core/echarts.ts to be consistent with this documentation.Current Behavior
width
andheight
are bothnumber
, which means the following paragraph of the document is not reasonable enough.Expected Behavior
Environment
Any additional comments?
The text was updated successfully, but these errors were encountered: