Salesforce is a great platform to manage your customer relationships. It provides a lot of data and tools to get a 360° view of your customer. Using the platform in the right way to extract relevant insights is key to meet your business needs and improve adoption. Salesforce provides multiple ways to display information visually. For example, Charts are a great way to showcase any information effectively. In this article we want to bring out the different ways in which you can leverage the platform to meet your charting needs.
The easiest way to show a single snippet of information pertaining to a record visually is by using a report chart on its record page. Report charts can be embedded on a record page or a home page. The record page report chart can also be filtered based on the record’s id to show only the data for that record.
Salesforce Dashboards are a powerful tool to combine related information and present it visually on a single page. Salesforce dashboards can display data from Salesforce reports using various charts like bar chart, stacked bar chart, line charts, donut chart, funnel chart and scatter chart. You can embed a Salesforce dashboard on a lightning record page or a homepage.
Custom visualization using Lightning Web Components (LWC)
Below are some scenarios when you may go beyond the standard reports and dashboards and leverage LWC:
LWC Approach 1 (simple):
An straightforward approach is to install the Chart.js LWC component provided by Salesforce Labs on the AppExchange. The Chart.js provides an LWC component which is simple and configurable as per your charting requirements. Data can be filtered as per your custom needs and passed on to this LWC. Chart display parameters can be configured in this LWC without writing any code. Parameters like the Legend, Title, Data, Color can be configured in the LWC HTML.
LWC Approach 2 (advanced):
The AppExchange LWC provides a simple configuration. But without writing code, you can only configure a limited number of parameters. If you need more control on the displayed chart, you can tweak the parameters in the LWC code. The Lighting Web Chart.js Component (LWCC) from Salesforce Labs itself is available as an open source component under MIT license. You can review and download the code available on github. It includes the relevant Chart.js libraries as well. After downloading the component, you can directly make changes as needed in the specific chart components.
Salesforce CRM Analytics
If you need to have a self-serve tool to analyze and visualize large amounts of data while including AI powered insights then Salesforce CRM Analytics will help you achieve that goal. CRM Analytics, available for purchase as a separate offering, is a self-service application that gives immediate access to powerful data insights through its intuitive point-and-click visual interface. You can create aggregated views of your disparate data—Salesforce or external data—and then slice and dice the data to get the insights.
There are various approaches to display information visually in Salesforce as seen above. From simple configuration to custom coding. Salesforce platform provides options to utilize various options as per need and deliver compelling user experience. Match your solution to the business needs with user experience and adoption in mind.