Highcharts Pie Chart Drilldown not showing on third drill

后端 未结 2 1733
庸人自扰
庸人自扰 2021-01-12 13:49

I have two issues:

  1. The third drilldown the names of the DataLabels appear as \"Slice\" instead of their respective names. Is this a bug or do I need to specify
相关标签:
2条回答
  • 2021-01-12 13:57

    I played with the first A data section, and changed it to this:

                data: [{
                    y: 33.06,
                    name: 'A',
                    drilldown: {
                        name: 'Budweiser',
                        data: [
                            {name:'A', y:10838}
                            , {name:'B', y:11349}
                            , {name:'C', y:11894}
                            , {name:'D', y:11846}
                            , {name:'E', y:11878}
                            , {name:'F', y:11662}
                            , {name:'G', y:11652}
                        ],
                        color: colors[0]
                    }},
    

    This is working perfectly for me. I pulled the categories and data nodes into a single array of name/data object nodes in the data array. Check the updated jsfiddle to see how the changes worked.

    1. Click A-1
    2. Click A
    0 讨论(0)
  • 2021-01-12 14:20

    Check out this fiddle or use the following code in the drilldown part:

    data: [
        ['slice_name',10],
        ['slice_name',7],
        ['slice_name',33],
        ['slice_name',2]
    ]
    
    0 讨论(0)
提交回复
热议问题