$('#jqChart').bind('dataPointLabelCreating', function (event, data) {
data.text = data.context.dataItem[0];
});
$('#jqChart').jqChart({
legend: { visible: false },
animation: { duration: 1 },
series: [
{
type: 'pie',
fillStyles: ['#418CF0', '#FCB441', '#E0400A', '#056492', '#BFBFBF'],
labels: {
stringFormat: '%s',
valueType: 'dataValue',
font: '15px sans-serif',
fillStyle: 'white'
},
data: [['N', 65], ['A', 58], ['B', 30],
['F', 60], ['C', 65]]
}
]
});
$search = <<< JS
... your JS code here
JS;
$this->registerJs($search, View::POS_READY);
// where $position can be View::POS_READY (the default),
// or View::POS_HEAD, View::POS_BEGIN, View::POS_END
?>