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
meet.sivameet.siva 

how to create bar chart?

Hi,

 

I have two custom fields Employee_ID__c and Tenure_Months__c in custom object Test__c

 

Custom fields are populated as below,

 

                     Employee_ID__c             Tenure_Months__c

                            1                                          77

                            2                                          80

                            3                                          4

                            4                                          5

                            5                                          60

                            6                                          52

                            7                                          15

                            8                                          12

 

 

I need to create a bar chart as follows

 

X-axis - Tenure in months

Y-axis - Number of employees

(i.e) i have to group count of employees by tenure

 

I am new to visualforce development. So, Please help me with code.

 

Regards,

S.Sivakumar

 

Best Answer chosen by Admin (Salesforce Developers) 
AJSFDCAJSFDC

Siva,

 

Check the below link

 

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

 

or

 

you can integrate using Google chart API

 

Cheers,

J