Modification in Chart Application

I am creating Chart Application and I want to modify the chart.

  1. How can I display the percentage in Pie Chart ? Since it only appears when the mouse over the Pie Chart.
  2. How can I add additional text ? It only displays for example Bandara, 94. I want to display Bandara, 94 lps. Lps is the additional text.

Please help. [ATTACH=CONFIG]n76489[/ATTACH]

Capture 2.PNG

To do that, you will have to update the chart generation options.

Can someone help Ali out with this?

To do item 2, try this code in the onScriptInit event:

ps1: to change any other chart attribute, just put the code right after the setChartAttribute line…
ps2: I couldn’t find any way to keep the labels always visible…


?>
<script>
window.onload = function(){
    // wait until the chart is loaded...
    var interval = setInterval(function(){
        if(typeof myChart != "undefined"){
            clearInterval(interval);
            
            setTimeout(function(){
                // change chart attributes...
                myChart.setChartAttribute("numbersuffix", " lps");
            }, 50);
        }
    }, 50);
};
</script>
<?php

Thank you Mamede. It works for ‘lps’.