Skip to content

v5.x版本legend内的tooltip会继承外层的tooltip配置 #14939

@DaiShengQuan

Description

@DaiShengQuan

Version

5.0.0

Steps to reproduce

legend: {
                type: 'scroll',
                orient: 'vertical',
                formatter: function(name) {
                   name=‘Legenf’ name;
                    return name;
                },
                tooltip: {
                    show: true,
                },
            },
            tooltip: {
                trigger: 'item',
                formatter: '{b}: {c} ({d}%)',
            },

What is expected?

legend内的tooltip不应继承外层tooltip的formatter配置

What is actually happening?

这个问题会导致图例hover事件时tooltip显示的内容错误

image

Metadata

Metadata

Assignees

Labels

not-a-bugpendingWe are not sure about whether this is a bug/new feature.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions