Version
5.0.2
Reproduction link
https://echarts.apache.org/examples/zh/editor.html?c=area-basic
Steps to reproduce
option = {
xAxis: {
type: 'category',
boundaryGap: false,
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
areaStyle: {
color:(p)=>{
console.log(p)
}
},
itemStyle:{
color:(p)=>{
console.log('p1',p)
}
}
}]
};
What is expected?
areaStyle.color 应该能正确打印log
What is actually happening?
itemStyle.color 支持function,并正确打印出param的值。areaStyle.color 无反应,不支持function

Version
5.0.2
Reproduction link
https://echarts.apache.org/examples/zh/editor.html?c=area-basic
Steps to reproduce
What is expected?
areaStyle.color 应该能正确打印log
What is actually happening?
itemStyle.color 支持function,并正确打印出param的值。areaStyle.color 无反应,不支持function