through API echarts.connect to connect echarts . If a graph polyline has empty data, linkage failure, Shows only the echart where the mouse is currently placed

zaq34kh6  于 2022-10-20  发布在  Echarts
关注(0)|答案(3)|浏览(152)

Version

5.0.2

https://codepen.io/flyfly6/pen/vmGzgq

Steps to reproduce

option1 = {
    title: {
        text: '折线图堆叠'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    axisPointer: {
        show: true,
        type: 'line',
        status: true,
        triggerTooltip: true,
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],

    },
    yAxis: {
        type: 'value'
    },
    series: [{
        name: '邮件营销',
        type: 'line',
        stack: '总量',
        data: []
    }, {
        name: '联盟广告',
        type: 'line',
        stack: '总量',
        data: []
    }, {
        name: '视频广告',
        type: 'line',
        stack: '总量',
        data: []
    }, {
        name: '直接访问',
        type: 'line',
        stack: '总量',
        data: []
    }, {
        name: '搜索引擎',
        type: 'line',
        stack: '总量',
        data: []
    }]
};

option1 && myChart1.setOption(option1);
option1 && myChart2.setOption(option1);
option1 && myChart3.setOption(option1);
echarts.connect([myChart1, myChart2, myChart3]);

What is expected?

resolve this problem

What is actually happening?

always

2.x version can resolve this problem , but 5.x version axisPointer linkage failure

ippsafx7

ippsafx71#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure thatyou have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list .

Have a nice day! 🍵

jrcvhitl

jrcvhitl2#

@plainheart@leeight@pissang please help me to resolve this problem. thanks ~

ax6ht2ek

ax6ht2ek3#

I have the same problem.
Additional explanation: Tooltip or Axispointer does not work when a series with null data is 0 index.
chart1 / 2 same series

chart1 / 2 different series

相关问题