I have to create a Target report and I am planning to use Gauge Chart for the purpose. The tricky point is that the Gauge breakpoints have to be derived from a formula field. Is it possible using Visualforce?
Thanks for Help.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
A good place to start will be using google charts :
If you use visualforce you cannot have breakpoints like in a standard gauge chart component. You can only set the min and the max via the vf page. When you set the max Salesforce automatically sets 10 evenly spaced out points that divides the max and the min. Then your needle or the data attribute is what fills the gauge to your amount.
So it looks something like this:
If you want to get fancier than that, you could try using Google charts that requires some java, I didn't go that route because it was a bit too advanced for me.
I worked through a bunch of gauge vf pages last month. If you scroll through my past questions there is a lot of code examples on how I did it that you could glean some information.
This post describes using the Google chart: Visualforce Gauge with breakpoints