Just a documentation error.
width Specify width explicitly, in pixel. If setting to null/undefined/'auto', width of dom (instance container) will be used.
height Specify height explicitly, in pixel. If setting to null/undefined/'auto', height of dom (instance container) will be used.
- OS: Windows 11
- Browser: 105.0.1343.42
- Framework: Vue@2
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
widthandheightare 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
widthandheightare bothnumber, which means the following paragraph of the document is not reasonable enough.Expected Behavior
Environment
Any additional comments?