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
ak80ak80 

Display a Chart/Graph on a Visualforce page

Basically, I'm trying to display a simple line chart on a VF page.

I'm open to any working approach.
Here's what I've tried so far:

- Pure javascript chart
- Using dojo library
- Flex inside an S-Control

Sadly, I couldn't make any of above work :-(

Any working sample, a guideline or a tip would be greatly appreciated!

AK.
DupeNukemDupeNukem
You may have luck using the Google Charts API, which is a simple, albeit not-too-robust charting mashup that allows you to generate charts and have them appear pretty much anywhere you want.

More info here:  http://code.google.com/apis/chart/

You'll need to find a way to pass the appropriate data, and it helps if that data is already somewhere on the page.  I was able to get some reasonable dynamic charts to show up on Account records.

Your mileage may vary.






ak80ak80
DupeNukem, thanks for your reply.

Actually, Google chart is the first thing I tried. Sorry, I forgot to mention it. Anyways, it was not approved because it doesn't support HTTPS. That Chart Server can be accessed via HTTP only, which is not acceptable in the application that I'm developing.

AK.

Sam.arjSam.arj
There is an example here:

http://salesforcesource.blogspot.com/2008/10/how-to-easily-bring-graphical-charts.html
http://salesforcesource.blogspot.com/2008/10/how-to-easily-bring-graphical-charts.html

I am not 100% percent sure that Google officially supports https however it seems to be working fine with SSL as well.
Check my post to obtain more information.




Message Edited by Sam.arj on 10-28-2008 11:39 AM
cwall_sfdccwall_sfdc

Look for Visualforce Charting in Winter '12.