Skip to content

visualMap line is the wrong color #15495

@foxitdog

Description

@foxitdog

Version

5.1.2

Steps to reproduce

myChart.setOption(option = {
"xAxis": {
    "type": "category",
    "data": [
        "2021-08-08 10:46:53",
        "2021-08-08 10:47:53",
    ]
},
"yAxis": {
    "type": "value",
},
"series": [
    {
        "type": "line",
        data:[25,50],
    }
],
"visualMap": {
    "pieces": [
         {
            "lte": 50,
            "color": "black"
        },
        {
            "gt": 50,
            "lte": 55,
            "color": "red"
        },
        {
            "gt":55,
            "color": "yellow"
        },
       
    ],
}

});

What is expected?

I want black

What is actually happening?

yellow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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