top of page

Convert widget to 3D

Updated: Nov 27, 2024

By default, most of the Sisense widget are 2D. We can convert them to 3D using below script


ree

Steps:


  1. Create bar/column/pie chart

  2. Add below script to widget. (Change alpha, beta, depth based on you requirement - it will change different angles of 3d chart)

  3. Save script and refresh the widget

Script for Column chart:


widget.on('processresult', function(se, ev){
	ev.result.chart.options3d = {
            enabled: true,
            alpha: 15,
            beta: 15,
            depth: 250,
            viewDistance: 25
        }
		
	ev.result.plotOptions.column.depth = 35
	ev.result.plotOptions.column.borderWidth = 0	
})

Script for Bar chart:


widget.on('processresult', function(se, ev){
	ev.result.chart.options3d = {
            enabled: true,
            alpha: 15,
            beta: 15,
            depth: 250,
            viewDistance: 25
        }
	
	ev.result.plotOptions.bar.depth = 35
	ev.result.plotOptions.bar.borderWidth = 0	
})

Script for Pie chart:


widget.on('processresult', function(se, ev){
	ev.result.chart.options3d = {
            enabled: true,
            alpha: 45,
            beta: 0
        }
	ev.result.plotOptions.pie.depth = 50	
})

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

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
bottom of page