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
DannyK89DannyK89 

Visual force charts value at top of bars

Hi everyone,

 

I would like to show the values of each bar on the bar chart I created at the top of the bar chart like a report. However I am having trouble figuring out how to do that. I would appreciate the help. 

 

Thank,

DJP1SDJP1S

Looks like you want the apex:chartLabel component within your barseries like this:

 

<apex:barSeries axis="left" title="Leads" xField="name" yField="data1" orientation="vertical">                 
       <apex:chartTips height="20" width="100"/>
       <apex:chartLabel field="data1" display="outside"/>
</apex:barseries>

 

 

WilmerWilmer
Thanks DJP1S,

It worked perfectly to me. Look at the following code:

<apex:barSeries title="Areas" orientation="vertical" axis="left"
			            xField="name" yField="data1" tips="true">
       <apex:chartTips height="20" width="120"/>
       <apex:chartLabel field="data1" display="outside" orientation="vertical"/>
</apex:barSeries>