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
})

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, 2024
Replying to

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

Like
BI Next Level white logo

BI Next Level is your trusted resource for BI customization, data solutions, and expert insights. Explore practical tips, scripts, and tutorials for tools like Sisense, Python, and SQL. Let’s transform your data into impactful insights together.

Quick Links
Connect with us
Copyright © 2024. All Rights Reserved. Designed, Developed & Maintained  by Intertoons
bottom of page