Piechart Slice Names Using Yiibooster And Highcharts

Hi Guys,

I’ve been searching web/code for hours, not being able to find how to setup the series attribute.

I have a query which outputs two values: ARlabel and ARresult.

Using the ‘attribute’ attribute I can set the piechart to display the various results properly.

But I cannot seem to set the various slice labels to ARlabel, as I do not seem to find any information on the web or am able to decipher through the code.

Please help




<div class="col1">

    <?php

    $this->widget('bootstrap.widgets.TbExtendedGridView', array(

        'filter' => $model,

        'type' => 'striped bordered',

        'dataProvider' => $model->getActivityReport($mode),

        'template' => "{items}\n{extendedSummary}",

        'columns' => array(

            'ARlabel', 'ARresult'),

        'chartOptions' => array(

            'data' => array(

                'series' => array(

                    array(

                        'name' => 'value',

                    

                        'attribute' => 'ARresult',

                        'label??' => 'ARlabel',


                        

                    )

                )

            ),

            'config' => array(

                'chart' => array(

                    'type' => 'pie',

                    'width' => 700,

                    'title' => 'test01',

                ),

                'credits' => array('enabled' => false),

                'title'=>array('text'=>$mode),

            )

        ),

    ));