cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Bar Charts into Radial Bars

harikm007
13 - Data Warehouse
13 - Data Warehouse

In some cases, radial bar charts can look nicer and be easier to understand than regular bar charts. Since Sisense doesn’t have a built-in widget for radial bar charts, here is a script that converts standard bar charts into radial ones. This guide will demonstrate how to use the script to make data visuals more interesting and clear. 

harikm007_0-1730114388976.png

 

Steps:

  1. Create a bar chart. It can be Classic, Stacked or stacked 100.

  2. Add below widget script and save.

  3. Refresh the widget

 

widget.on('processresult', function(se, args){	
    args.result.chart.polar = true

	args.result.pane = {
        size: '80%',
        innerSize: '20%',
        endAngle: 270
    }

});

Reference: https://www.binextlevel.com/post/convert-bar-charts-into-radial-bars 

 

-Hari

1 REPLY 1

MikeGre
9 - Travel Pro
9 - Travel Pro
Great script!
You can also use the "startAngle" in case you wish to adjust the orientation! (Tested on 2023.11)

eg.
widget.on('processresult', function(se, args){ args.result.chart.polar = true args.result.pane = { size: '80%', innerSize: '20%',
startAngle: -90 endAngle: 90 } });