Skip to content

Image symbol disappeared after legend selection is toggled in line series. #9718

@skytkcn

Description

@skytkcn

使用symbol进行自定义拐点图片时,添加图例后试用图例控制折线图的显示隐藏后,在第一次显示自定义图片后,后面不再显示

option = {
        tooltip : {
            trigger: 'axis',
        },
        legend: {
            data:['邮件营销']
        },
        xAxis: {
            type: 'category',
            data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            name:'邮件营销',
            data: [120, 200, 150, 80, 70, 110, 130],
            type: 'line',
            symbol: 'image://https://www.skytk.cn/wp-content/uploads/2018/06/fac.png',
            symbolSize: 20,
            lineStyle: {
                normal: {
                    color: 'green',
                    width: 4,
                    type: 'dashed'
                }
            },
            itemStyle: {
                normal: {
                    borderWidth: 3,
                    borderColor: 'yellow',
                    color: 'blue'
                }
            }
        }]
    };

第一次加载时
image

点击图例隐藏再显示后
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions