+ Start a Discussion
IvanB@LMIvanB@LM 

Apex:Chart

Hi, Experts - 

How can apex:chart be inside as apex:outputpanel tag. Once placed charts are not generated, however when place outside

outputpanel, all works. But I need to get charts within panel, Any ideas ?

 

Thanks,

kiranmutturukiranmutturu

try with layout="block" attribute

cwall_sfdccwall_sfdc

I tried the following.  Works/renders as-expected.  What are you seeing?  Are they Javascript errors?

 

<apex:outputPanel>
	<apex:chart height="335" width="335" animate="true" legend="true" data="{!pieData}" name="MyPieChartPanel">
        <apex:legend position="left"/>
        <apex:pieSeries dataField="data1" labelField="name" highlight="true" tips="true">
        	<apex:chartLabel display="rotate" field="name"/>
        </apex:pieSeries>
    </apex:chart>
</apex:outputPanel>