echarts
echarts copied to clipboard
[Bug] dataset with dimensions produce error heatmap
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
- I use https://echarts.apache.org/examples/en/editor.html?version=5.3.3 to test chart.
- 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', } } ] };
- 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.

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

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