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
- Salesforce Higher Education: Transforming Modern Universities15 Apr 2025 Blog
- AI Agents The Future of Business Applications09 Apr 2025 Blog
- Why Purpose-Built AI Agents Are the Future of AI at Work07 Apr 2025 Blog
- How the Atlas Reasoning Engine Powers Agentforce03 Apr 2025 Blog
- Leveraging AI for Code Analysis, Real-Time Interaction, and AI-driven Documentation02 Apr 2025 Use-case
- Transforming Healthcare with AI-Powered Patient Health Monitoring with Fitbit & Salesforce01 Apr 2025 Use-case
- 5 Myths About Autonomous Agents in Salesforce28 Mar 2025 Blog
- AI for Nonprofits: Boosting Fundraising with Salesforce Einstein, Agentforce, and Smarter InsightsShape25 Mar 2025 Use-case
- AI-Powered Vaccination Scheduling with Einstein Copilot & Predictive AI21 Mar 2025 Use-case
- Leveraging AI to Enhance Sales Effectiveness13 Mar 2025 Use-case
Categories
Featured by



