Skip to content

echart3 柱状图 渐变 #3065

@czwanmmwhh

Description

@czwanmmwhh
 var color = new echarts.graphic.LinearGradient(-1,0,2,0,[{
            offset:0,
            color:'red'
        },{
            offset:0.5,
            color:'yellow'
        },{
            offset:1,
            color:'red'
        }]
    );

var option = {
    color : [color]
}

在柱状图中初始化时是有渐变的 但是鼠标移入后渐变就有问题了

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions