echarts
echarts copied to clipboard
[Bug] Heatmap视图下,markArea无法同时设定X值和Y值。
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
- markArea中配置data字段为文档实例。`data: [
[
{
name: '两个屏幕坐标之间的标域',
x: 100,
y: 100
}, {
x: '90%',
y: '10%'
}
]
] 2. 运行后控制台报错。vue.runtime.esm.js?c320:1897 TypeError: Cannot read property '0' of undefined
at markAreaTransform (MarkAreaView.js?9f4a:69)
at eval (util.js?d5c9:310)
at Array.map (
Current Behavior
vue.runtime.esm.js?c320:1897 TypeError: Cannot read property '0' of undefined
at markAreaTransform (MarkAreaView.js?9f4a:69)
at eval (util.js?d5c9:310)
at Array.map (
Expected Behavior
页面正常渲染出markArea区域。
Environment
- OS:Win 10
- Browser:Electron
- Framework:Vue@2
Any additional comments?
No response
@Knell0714 It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] In heatmap view, markArea cannot set both X and Y values.
BODY
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
- Configure the data field in markArea as a document instance. `data: [
[
{
name: 'The scalar field between two screen coordinates',
x: 100,
y: 100
}, {
x: '90%',
y: '10%'
}
]
]2. The console reports an error after running.vue.runtime.esm.js?c320:1897 TypeError: Cannot read property '0' of undefined
at markAreaTransform (MarkAreaView.js?9f4a:69)
at eval (util.js?d5c9:310)
at Array.map(
Current Behavior
vue.runtime.esm.js?c320:1897 TypeError: Cannot read property '0' of undefined
at markAreaTransform (MarkAreaView.js?9f4a:69)
at eval (util.js?d5c9:310)
at Array.map(
Expected Behavior
The page renders the markArea area normally.
Environment
- OS: Win 10
- Browser: Electron
- Framework:Vue@2
Any additional comments?
No response
@Knell0714 Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.
如果是想要画矩形的话可以直接用 graphic.element-rect
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!