top of page

Add subtitle to Widget

Sometimes we may need to add some more information about the data displayed on the widget. i-button is an option to add this description, but sometimes user may not aware about the button. Here is an alternative method for adding information that will always appear on the widget.






Steps:

  1. Create widget

  2. Add below script to widget.

  3. Update text to be displayed and set format of text

  4. Save the script and refresh widget



widget.on('processresult',function(se,ev){
	//Subtitle
	ev.result.subtitle = {
		text: 'This is a sample subtitle. This is a sample subtitle. This is a sample subtitle.',
		align: 'left',
		style: {
			color: '#787878',
            fontSize:'13px',
			fontWeight:'bold'
		}
	}
	
	ev.result.chart.marginTop = 75 // to add required space to display subtitle at the top
})

217 views2 comments

2 Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
garrett
May 26, 2023

Hey! I can't seem to get this to work with a pivot table. Changing to a bar chart works just fine. Can you help?

Like
Cooks
Oct 16
Replying to

I would also like to enable this feature for pivot tables. Is it possible?

Like
bottom of page