echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Heatmap视图下,markArea无法同时设定X值和Y值。

Open Knell0714 opened this issue 3 years ago • 4 comments

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. 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 () at map (util.js?d5c9:228) at createList (MarkAreaView.js?9f4a:358) at MarkAreaView.renderSeries (MarkAreaView.js?9f4a:222) at eval (MarkerView.js?e25f:77) at GlobalModel.eval (Global.js?05a0:654) at Array.forEach () at each (util.js?d5c9:205)`

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 () at map (util.js?d5c9:228) at createList (MarkAreaView.js?9f4a:358) at MarkAreaView.renderSeries (MarkAreaView.js?9f4a:222) at eval (MarkerView.js?e25f:77) at GlobalModel.eval (Global.js?05a0:654) at Array.forEach () at each (util.js?d5c9:205)

Expected Behavior

页面正常渲染出markArea区域。

Environment

- OS:Win 10
- Browser:Electron
- Framework:Vue@2

Any additional comments?

No response

Knell0714 avatar Aug 24 '22 08:08 Knell0714

@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

  1. 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() at map (util.js?d5c9:228) at createList (MarkAreaView.js?9f4a:358) at MarkAreaView.renderSeries (MarkAreaView.js?9f4a:222) at eval (MarkerView.js?e25f:77) at GlobalModel.eval (Global.js?05a0:654) at Array.forEach() at each (util.js?d5c9:205)`

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() at map (util.js?d5c9:228) at createList (MarkAreaView.js?9f4a:358) at MarkAreaView.renderSeries (MarkAreaView.js?9f4a:222) at eval (MarkerView.js?e25f:77) at GlobalModel.eval (Global.js?05a0:654) at Array.forEach() at each (util.js?d5c9:205)

Expected Behavior

The page renders the markArea area normally.

Environment

- OS: Win 10
- Browser: Electron
- Framework:Vue@2

Any additional comments?

No response

echarts-bot[bot] avatar Aug 24 '22 08:08 echarts-bot[bot]

@Knell0714 Please provide a demo for the issue either with Official Editor, CodePen, CodeSandbox or JSFiddle.

echarts-bot[bot] avatar Aug 25 '22 10:08 echarts-bot[bot]

如果是想要画矩形的话可以直接用 graphic.element-rect

Ovilia avatar Aug 25 '22 10:08 Ovilia

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.

github-actions[bot] avatar Aug 24 '24 21:08 github-actions[bot]

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!

github-actions[bot] avatar Aug 31 '24 21:08 github-actions[bot]