Skip to content

折线图-areaStyle.color 不支持function #14334

Description

@ALLLRON

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

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussion-requiredFurther discussion is required before we decide if this issue should be fixed.new-featurestaleInactive for a long time. Will be closed in 7 days.topic: line

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions