cancel
Showing results for 
Search instead for 
Did you mean: 

Flip Legend on Stacked Bar Chart

gwolfe
10 - ETL
10 - ETL

On a stacked bar chart the legend is displayed in the opposite direction as the bars. This is not the best design. Does anyone know how to fix? 

gwolfe_0-1723149874332.png

 

1 ACCEPTED SOLUTION

rapidbisupport
11 - Data Pipeline
11 - Data Pipeline

Hi @gwolfe ,

You can reverse the legend using the following widget script:

widget.on('processresult', (w, args)=> {
  args.result.legend.reversed = false
})

 Result as screenshot:

rapidbisupport_0-1723158371918.png

Let me know how you go?

Thanks,

Daniel

RAPID BI

[email protected]

RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons

View solution in original post

2 REPLIES 2

rapidbisupport
11 - Data Pipeline
11 - Data Pipeline

Hi @gwolfe ,

You can reverse the legend using the following widget script:

widget.on('processresult', (w, args)=> {
  args.result.legend.reversed = false
})

 Result as screenshot:

rapidbisupport_0-1723158371918.png

Let me know how you go?

Thanks,

Daniel

RAPID BI

[email protected]

RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons

gwolfe
10 - ETL
10 - ETL

Perfect. Thanks Daniel