echarts-gl icon indicating copy to clipboard operation
echarts-gl copied to clipboard

scatter3D 在data中设置 borderWidth 没有效果。

Open kuyoeku opened this issue 7 years ago • 1 comments

series: [{
        name: 'scatter3D',
        type: "scatter3D",
        coordinateSystem: 'geo3D',
        symbol: 'pin',
        symbolSize: 50,
        opacity: 1,
        label: {
            show: false,
            formatter: '{b}'
        },
        data: [{
            name: "阳泉",
            value: [113.57, 37.85, 0],
            tooltip: {
                show: false
            },
            itemStyle: {
                color: '#fff',
                borderWidth: 0.0,
                opacity: 0,
                borderColor : [0, 0, 0, 0]
            }
        }, {
            name: "莱州",
            value: [119.942327, 37.177017, 200],
            itemStyle: {
                color: '#ff0000',
                borderWidth: 1, //这个设置无效
                opacity: 1,
                borderColor : [1, 1, 1, 1]
            }
        }, {
            name: "湖州",
            value: [120.1, 30.86, 100]
        }, {
            name: "汕头",
            value: [116.69, 23.39, 50]
        }, {
            name: "昆山",
            value: [120.95, 31.39, 20]
        }, {
            name: "张家口",
            value: [114.87, 40.82, 300],
            tooltip: {
                show: false
            },
            itemStyle: {
                color: '#fff',
                borderWidth: 0,
                opacity: 0.0
            }
        }]
    }]

kuyoeku avatar Mar 16 '18 02:03 kuyoeku

Update v.5.3.0 - indeed data.itemStyle.borderWidth does not work. Only color and opacity are working inside data.itemStyle. series.itemStyle supports all of them.

helgasoft avatar Feb 11 '22 06:02 helgasoft