Skip to content

Instantly share code, notes, and snippets.

@hidayat365
Created December 11, 2012 03:30
Show Gist options
  • Save hidayat365/4255717 to your computer and use it in GitHub Desktop.
Save hidayat365/4255717 to your computer and use it in GitHub Desktop.
Yii-Hightchart
<?php
$this->Widget('ext.highcharts.HighchartsWidget',
array(
'options'=>array(
'title' => array('text' => 'Accounts Receivable by Department'),
'chart' => array('height'=>320),
'series' => array(
array(
'type'=>'pie',
'name'=>'Receivable',
'data'=>array(
array('DKI',150),
array('Bandung',80),
array('Medan',30),
array('Bandung',50),
array('Makassar',10),
array('Balikpapan',5),
array('Padang',15),
),
),
),
),
)
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment