如何显示3d渠道的连接器?

时间:2019-06-05 06:25:26

标签: javascript highcharts

Click to see the image 我在使用highcharts绘制3D漏斗时遇到重叠问题。我还附有一张显示问题的图像。希望它可以帮助您调试

我已经按照highcharts文档尝试了api参考

function sales_funnel(key_val, response) {

    Highcharts.setOptions({
        lang: {
            thousandsSep: ','
        }
    });

    Highcharts.chart('funnel_container', {
        chart: {
            type: 'funnel3d',
            options3d: {
                enabled: true,
                alpha: 10,
                depth: 50,
                viewDistance: 50
            }
        },
        title: {
            text: 'Sales Funnel'
        },
        plotOptions: {
            funnel3d: {
                label: {
                    enabled: true,
                    connectorAllowed: true,
                    connectorNeighbourDistance: 30
                },
            },
            series: {
                dataLabels: {
                    enabled: true,
                    format: '{point.name} ({point.y:,.0f})',
                    color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black',
                },
                neckWidth: '30%',
                neckHeight: '25%',
                width: '80%',
                height: '80%'
            }
        },
        series: [{
            name: response[1],
            data: key_val
        }]
    });
}[enter image description here][1]

0 个答案:

没有答案