echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] dataset with dimensions produce error heatmap

Open yingking opened this issue 3 years ago • 0 comments

Version

5.3.3

Link to Minimal Reproduction

No response

Steps to Reproduce

  1. I use https://echarts.apache.org/examples/en/editor.html?version=5.3.3 to test chart.
  2. the option is: const datas = [ { time:'2022-08-07', value:10, }, { time:'2022-08-08', value:20, }, ] option = { dataset:{ dimensions:['value','time'], source:datas, }, visualMap:{ type:'piecewise', orient:'horizontal', min:0, max:30, }, tooltip:{}, calendar:{ range:'2022', }, series: [ { type: 'heatmap', coordinateSystem:'calendar', encode:{ time:'time', value:'value', } } ] };
  3. I do nothing,just preview seems wrong.

Current Behavior

2022-08-07 and 2022-08-08 do not show colors.

Expected Behavior

2022-08-07 and 2022-08-08 show colors.

Environment

- OS:Windows 10
- Browser:Chrome 103.0.5060.114
- Framework:just Chrome browser

Any additional comments?

with option: option = { dataset:{ dimensions:['value','time'], source:datas, }, } I expect value link data's value field,and time link data's time field,but it's not work. image

However,when I change it to: option = { dataset:{ dimensions:['time','value'], source:datas, }, } It worked. image

Then I changed the series.encode's time and value field,it not worked again... image

yingking avatar Aug 09 '22 08:08 yingking