function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arun KArun K 

showing value in apex:pieseries

Hi,

I am looking to show the value in donut and not when I hover.At present when I hover I could see it.User-added image

how to do it.?
Ashish_SFDCAshish_SFDC
Hi Arun, 


Looks like it has been defined to display ONMOUSEOVER javascript function, 

Try this , 

<!-- Page: -->
                       
    <apex:chart data="{!pieData}" height="300" width="400">
        <apex:pieSeries labelField="name" dataField="data1"/>
    </apex:chart>

donut Integer An integer representing the radius of the hole to place in the center of the pie chart, as a percentage of the radius of the pie. If no value is specified, 0 is used, which creates a normal pie chart, with no hole.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_pieSeries.htm


<apex:chart data="{!pieData}" height="400" width="500" background="#F5F5F5">
    <apex:legend position="left"/>
    <apex:pieSeries labelField="name" dataField="data1" donut="50">
        <apex:chartLabel display="middle" orientation="vertical"
            font="bold 18px Helvetica"/>
    </apex:pieSeries>
</apex:chart>

http://www.salesforce.com/us/developer/docs/pages/Content/pages_charting_appearance_pie_charts.htm


Regards,
Ashish