Accelerate the Value of Data

Configure custom charts for numerical values in the Profile view

Learn about facts that show data based on a numerical value.

Configure facets in your Profile view to show specific details based on a numerical value of an attribute. For example, let's say you want to display the loyalty status for an entity. The attribute Loyalty points — a numerical value — determines if the entity is a Silver, Gold, or a Platinum member. So, using this attribute, configure a script that displays a different icon and label for each type of membership.

Here's a sample custom chart:

Notice the facet that indicates the customer is a Platinum member. The image changes based on the status. You can configure the image that you want displayed with each status.

So, how do you do this? Edit your UI JSON configuration file and add the custom script configuration.

Here's an example configuration for the custom chart:

{
  "id": "com.reltio.plugins.TestDialog_numbers",
  "point": "com.reltio.plugins.ui.view"
  "caption": "<caption>",
  "class": "com.reltio.plugins.ui.CustomActionView",
  "ranges": [
	{
  		"0": {
        	"label": "Simple member",
        	"icon": "https://s3.amazonaws.com/reltio.qa.ih/thumbnailInew/djVhVAGO88c7Pw9wDy38PsgAx.jpg"
    	},
    		"50": {
        	"label": "Silver member",
        	"icon": "https://s3.amazonaws.com/reltio.qa.ih/previewnew/3C4tvaLJZMhijBcmvhg7aZqS0.jpg"
    	},
    		"80": {
        	"label": "Platinum member",
        	"icon": "https://s3.amazonaws.com/reltio.qa.ih/previewnew/w5kyF5NlYyVUinUkwZeyVeajy.jpg"
    	}
  	},
  "attributeUri": "configuration/entityTypes/HCP/attributes/Int",
  "embedded": true,
  "action": {
    "files": [
        "https://reltio-ui-files.s3.amazonaws.com/custom-scripts/numericAttrView.js"
    ]
  }
}
Note: When you're adding images to represent the icons for a status, ensure you save the images in publicly accessible URLs. The custom script mentioned under the action:files section in the above code isn't configurable. You must give the same link as above.