qq_39604706 2018-12-13 04:10 采纳率: 0%
浏览 2545

echarts在3d地球中dispatchAction无效?

var globel = echarts.init(document.getElementById('globe'));

        const option = {
            // backgroundColor: '#000',
            visualMap: {
                show: false,
                min: 0,
                max: 60,
                inRange: {
                    symbolSize: [1.0, 10.0],
                    opacity:[1,0.5]
                }
            },
            tooltip: {
                trigger: 'item',
                alwaysShowContent:true,
                formatter: function(prams,d,callback){
                    return prams.value
                },
            },
            globe: {
                baseTexture: require('../assets/world.png'),
                globeOuterRadius: 100,
                displacementScale: 0.1,
                viewControl:{
                    autoRotate:false
                },
                postEffect:{
                    bloom:true,
                    screenSpaceAmbientOcclusion:true
                },
                shading: 'color',
                z: 9
            },
            series: {
                type: 'scatter3D',
                coordinateSystem: 'globe',
                blendMode: 'source-over',
                symbolSize: 2,
                itemStyle: {
                    // color: 'rgb(148, 148, 148)',
                    color:'#b4b4b4',
                    opacity: 1
                },
                data: data
            }
        }
*******************************
        globel.dispatchAction({
            type:'showTip',
            seriesIndex:0,
            dataIndex:1
        })

如上,无论如何都无法用方法呼出tooltip,但是正常的item触发还是可以的

  • 写回答

1条回答 默认 最新

  • bug_game 2022-01-20 15:42
    关注

    请问现在解决这个问题了吗

    评论

报告相同问题?

悬赏问题

  • ¥88 实在没有想法,需要个思路
  • ¥15 MATLAB报错输入参数太多
  • ¥15 python中合并修改日期相同的CSV文件并按照修改日期的名字命名文件
  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败