export let funnel = {
    title: {
        text: '党组织分布',
        top: 10,
        left: 'center',
        textStyle: {
            fontSize: 20,
            color: '#FFFFFF'
        }
    },
    tooltip: {
        trigger: 'item',
        formatter: function ( params ) {
            return params.name + "：" + ( params.data.count / params.data.total * 100 ).toFixed( 2 ) + "%";
        }
    },
    series: [ {
        type: 'funnel',
        sort: 'ascending',
        color: [ '#d4a902', '#1181ff', '#ff2b25' ],
        left: 'center',
        top: '18%',
        bottom: 15,
        width: '70%',
        label: {
            formatter: function ( params ) {
                return '{a|' + params.name + '}\n{b|' + params.data.count + '} {a|个}';
            },
            position: 'center',
            fontWeight: 'bolder',
            textBorderWidth: '3',
            textBorderColor: '#333',
            rich: {
                a: {
                    color: '#FFFFFF',
                    fontSize: 18,
                    lineHeight: 20,
                    align: 'center'
                },
                b: {
                    color: '#FFFFFF',
                    fontSize: 20,
                    lineHeight: 24,
                    align: 'center'
                }
            }
        },
        labelLine: {
            show: false,
            length: 0
        },
        itemStyle: {
            borderWidth: 0
        },
        data: []
    } ]
}