echarts icon indicating copy to clipboard operation
echarts copied to clipboard

How to use visualMap to control two or more series at the same time

Open lisccc opened this issue 5 years ago • 3 comments

Please help me. How to use visualMap to control the display of two series named Target at the same time without affecting other series, use one controller to control these two targets? Specifying two seriesIndex in visualMap will create two controllers, which I don't want to see.

series: [{
    name: 'AP',
    type: 'scatter3D',
    data: mydataset,
    symbol: 'triangle',
    symbolSize: 30,
    color: '#000',
    itemStyle: {
        borderColor: '#fff',
        borderWidth: 2,
    },
}, {
    name: 'hidden',
    type: 'bar3D',
    stack: 'stack',
    data: floor1.map(function(item, idx) {
        return [floor1[0], floor1[1], 1]
    }),
    barSize: [10, 10],
    itemStyle: {
        opacity: 0,
    },
}, {
    name: 'Target',
    data: floor1,
    type: 'bar3D',
    stack: 'stack',
    barSize: [10, 10],
    itemStyle: {
        opacity: 0.6,
    }
}, {
    name: 'hidden',
    type: 'bar3D',
    stack: 'stack',
    data: floor2.map(function(item, idx) {
        return [floor2[0], floor2[1], 5 - bar_height, floor2[3]]
    }),
    barSize: [10, 10],
    itemStyle: {
        opacity: 0,
    },
}, {
    name: 'Target',
    type: 'bar3D',
    stack: 'stack',
    data: floor2,
    barSize: [10, 10],
    itemStyle: {
        opacity: 0.6,
    },
}]

lisccc avatar Aug 02 '20 01:08 lisccc

This issue is not created using issue template so I'm going to close it. 🙊 Sorry for this, but it helps save our maintainers' time so that more developers get helped. Feel free to create another issue using the issue template.

If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.

这个 issue 未使用 issue 模板 创建,所以我将关闭此 issue。 为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。 如果您愿意,可以请使用 issue 模板重新创建 issue。

如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

echarts-bot[bot] avatar Aug 02 '20 01:08 echarts-bot[bot]

@LiShengc Please provide a demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM or https://gallery.echartsjs.com/editor.html.

echarts-bot[bot] avatar Aug 03 '20 02:08 echarts-bot[bot]

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Aug 03 '22 21:08 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Aug 10 '22 21:08 github-actions[bot]