Dynamic Gauge in salesforce
Author
December 2, 2015
Salesforce provides us standard functionality to create Reports and dashboards to represent records in diagrammatic form. Sometimes we face the requirement to represent our data in diagrammatic Form on visual force page in some specific type of diagram we represent it using the chart. Salesforce provide us Bar chart, Pie chart, Gauge chart, Radar charts
Here I am going to explain how we can represent specific field data in the form of a gauge chart. To achieve this requirement we need four things basically. First, we should have an object whether it’s a standard or custom object, a field associated with that object that should hold any numeric Value, apex controller, apex class.
I will start with an object lets say I have a standard controller Account where I have a custom field Score and I need to represent that score in the form of gauge. Whenever page loads that value represents in the form of gauge and whenever the fields value changes the gauge should reflect that Change.
So the items that we have is:
- Standard object: Account.
- Custom Field : score__c,score1__c
- Apex controller: TestPageController1.
- Visualforce page: gauge.
First of all the code for the controller that we will need is:
We have created a controller named GaugeController.
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
Mirketa Unveils Next-Gen AI Solutions to Redefine the Future of Work Across Industries29 Jul 2025 Press Release
-
Salesforce Implementation School Universities Higher Education23 Jul 2025 Blog
-
Salesforce Health Cloud Implementation Partner: A Complete Guide23 Jul 2025 Blog
-
XML Parsing: Using MINIDOM Vs Element Tree (etree) in Python02 Jul 2025 Blog
-
A step by step Guide to create Salesforce web-to-lead form30 Jun 2025 Blog
-
How AI is Transforming User Experience Design in 202526 Jun 2025 Blog
-
How a Salesforce NPSP Consultant Can Elevate Nonprofit Impact25 Jun 2025 Blog
-
Salesforce Load and Performance Testing: Essentials, Importance & Execution23 Jun 2025 Blog
-
Salesforce Website Integration Boost Leads, Automation & Customer Experience11 Jun 2025 Blog
-
Driving Results in Manufacturing with Salesforce Manufacturing Cloud11 Jun 2025 Blog
Categories
Featured by



