饼图叠加高图

时间:2016-05-25 10:49:40

标签: highcharts pie-chart

一直试图阻止这种聚类,但没有任何事情发生。尝试过覆盖,距离,旋转,但标签仍在聚类。我如何防止它们重叠?

  <script>
    $(function () {
    $.getJSON('/Administration/Dashboard/PieChartDrilldown/0', function (data) {
            $('#container0').highcharts({
                chart: {
                    plotBackgroundColor: null,
                    plotBorderWidth: null,
                    plotShadow: false,
                    type: 'pie'
                },
                title: {
                    text: 'PARKING',
                    floating: true,
                    align: 'center',
                },
                tooltip: {
                    pointFormat: '{series.name}: </b>: Ksh. {point.y:,.0f}',
                },
                credits: false,
                plotOptions: {
                    pie: {
                        size: '100%',
                        padding: 0,
                        allowPointSelect: true,
                        innerSize: '50%',
                        cursor: 'pointer',
                        dataLabels: {
                            enabled: true,
                            distance: -30,
                            x: 0,
                            y: 10,
                            format: '<b>{point.name}</b>: Ksh. {point.y:,.0f}',
                            style: {
                                color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                            }
                        }
                    }
                },
                series: [{
                    name: 'Parking',
                    colorByPoint: true,
                    data: data.data

                }]
                ,
                drilldown: {
                    series: data.drilldown
                }
            });
        });
        });
</script>
    <div id="container0" class="col-md-3" style="margin:0px; height:300px"></div>

0 个答案:

没有答案