tooltip highchart

hi

i use of highchart.

this is my code is :




foreach ($modelChart as $value) {

    $label[] = $value->status_date;

    $nilai[] = (int)$value->code_item_id;

  //  $lableTooltip[]= $value->getState($value->code_item_id);

}




    $this->Widget('ext.highcharts.HighchartsWidget', array(

   'options'=>array(

       'chart'=> array('defaultSeriesType'=>'line'),

      'title' => array('text' => 'status of order'),

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

       'tooltip'=>array('useHTML'=>true ),

       'legend'=>array('useHTML'=>true),

       

       'plotOptions'=>array(

              'column'=>array('depth' => 10,'groupZPadding' => 10),


       ),

       

      'xAxis' => array(

         'categories' => $label,

         'title' => array('text' => 'date')

      ),

      'yAxis' => array(

         'title' => array('text' => 'status')

      ),

      'series' => array(

         array('name' => 'status','data'=>$nilai,'dataLabels'=>array('enabled'=>'true','rotation'=>'-90','color'=>'#fff','x'=>4,'y'=>10)

        )

      )

   )

));



this is work properly .

i want that in tooltip ,per data in series shown value of $lableTooltip in my tooltip.

thanks in advance

i find a solution ,i take in data every thing that want shown . and in tooltip , pointFormat set ‘’




foreach ($modelChart as $value) {

    $label[] = $value->status_date;

    $nilai[] = array($value->getState($value->code_item_id).' '.Yii::app()->jdate->date('Y-m-d',$value->status_date),(int)$value->code_item_id);

    

}


    $this->Widget('ext.highcharts.HighchartsWidget', array(

   'options'=>array(

       'chart'=> array('defaultSeriesType'=>'line'),

      'title' => array('text' => 'status'),

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

       'tooltip'=>array('useHTML'=>true ,

           'pointFormat'=>''

         

           ),

       'legend'=>array('useHTML'=>true),

       

       'plotOptions'=>array(

              'column'=>array('depth' => 10,'groupZPadding' => 10),


       ),

       

      'xAxis' => array(

         'categories' => $label,

         'title' => array('text' => 'date')

      ),

      'yAxis' => array(

         'title' => array('text' => 'status')

      ),

      'series' => array(

         array('name' => 'status','data'=>$nilai,'dataLabels'=>array('enabled'=>'true','rotation'=>'-90','color'=>'#fff','x'=>4,'y'=>10)

        ),

        

      )

   )

));



its work .but i dont know that is be best solution !