top of page

Add target/benchmark line to a chart in Sisense

Below script allow us to plot a static target line in a chart.

Supported chart types : Bar chart, Column chart, Line chart, Area chart





widget.on('processresult', function(se, ev){

	ev.result.yAxis[0].plotLines = [{
				color: '#2ec7b5',
				dashStyle: 'LongDash',
				width: 4,
				value: 800,
				zIndex: 5,
				label : {
					text : 'Target'
				}
            }]
})

Possible values of dashStyle are :

'Solid',

'ShortDash',

'ShortDot',

'ShortDashDot',

'ShortDashDotDot',

'Dot',

'Dash',

'LongDash',

'DashDot',

'LongDashDot',

'LongDashDotDot'



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