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

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