cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Introduction
Use this script for granular formatting of an Indicator Widget. 
 
Instructions:
Create your indicator widget and add it to the dashboard. Select the edit button and choose the Edit Script from the options menu on the top right. 
 
Add the following script and adjust the options object based on your needs.
widget.on('processresult', function(w, e) {

 var options = {
 title: {
 fontFamily: 'Helvetica, sans-serif',
 fontWeight: 'bold',
 fontSizes: {
 big: 40,
 medium: 30
 },
 color: 'green'

 },
 secondaryTitle: {
 fontFamily: 'Helvetica, sans-serif',
 fontWeight: 'bold',
 fontSizes: {
 big: 20,
 medium: 10
 },
 color: 'blue'

 },
 secondaryValue: {
 fontFamily: 'Helvetica, sans-serif',
 fontStyle: 'italic',
 color: 'yellow'
 },
 
 backgroundColor: 'gray'
 };

 w.indicatorInstance.setOptions('numericSimple', options);

});
Comments
danblack
9 - Travel Pro
9 - Travel Pro

This doesn't seem to have an affect on my widget.  Should this work for gauge indicators?

Version history
Last update:
‎03-02-2023 09:18 AM
Updated by:
Contributors
Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Developers Group:

Product Feedback Forum:

Need additional support?:

Submit a Support Request

The Legal Stuff

Have a question about the Sisense Community?

Email [email protected]

Share this page: