echarts icon indicating copy to clipboard operation
echarts copied to clipboard

图形markPoint若与legend重合会存在相互遮挡,没有类似于empasis事件

Open sept08 opened this issue 10 years ago • 2 comments

问题简述 (One-line summary)

默认情况下,legend与makePonit的标注出现在同一位置时,makePonit的标注会遮挡前者,可以通过设置legend的z属性或zlevel属性,来让legend遮挡后者。没找到方法使得,当legend遮挡makePonit标注的时候,鼠标移动至makePoint标注时,来翻转遮挡。

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): echarts3
  • 浏览器类型和版本 (Browser version): chrome
  • 操作系统类型和版本 (OS Version):

重现步骤 (Steps to reproduce)

  1. 执行下列代码,更改legend.z或legend.zlevel会交替遮挡 2.

期望结果 (Expected behaviour)

提供方法控制当鼠标移动到标注上时,会使得标注遮挡legend

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {
    title: {
        text: '未来一周气温变化',
        subtext: '纯属虚构'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['最高气温','最低气温'],
        z:20
    },
    toolbox: {
        show: true,
        feature: {
            dataZoom: {
                yAxisIndex: 'none'
            },
            dataView: {readOnly: false},
            magicType: {type: ['line', 'bar']},
            restore: {},
            saveAsImage: {}
        }
    },
    xAxis:  {
        type: 'category',
        boundaryGap: false,
        data: ['周一','周二','周三','周四','周五','周六','周日']
    },
    yAxis: {
        type: 'value',
        axisLabel: {
            formatter: '{value} °C'
        }
    },
    series: [
        {
            name:'最高气温',
            type:'line',
            data:[11, 11, 15, 20, 12, 13, 10],
            markPoint: {
                data: [
                    {type: 'max', name: '最大值'},
                    {type: 'min', name: '最小值'}
                ],
                symbolSize : 80
            },
            markLine: {
                data: [
                    {type: 'average', name: '平均值'}
                ]
            }
        }
    ]
};


其他信息 (Other comments)

sept08 avatar Aug 01 '16 09:08 sept08

暂时做不到

pissang avatar Aug 03 '16 02:08 pissang

This issue is closed due to not being active. Please feel free to open it again (for the author) or create a new one and reference this (for others) if you have further questions.

echarts-bot avatar Jul 01 '19 05:07 echarts-bot