Showing results for 
Search instead for 
Did you mean: 

Renaming the names of legend in a stacked bar chart

7 - Data Storage
7 - Data Storage

Hi there!

I have a field called "ABC" which is a boolean with "Yes" and "No" records. I am breaking by "ABC" in a column chart where the legends appear as "YES" and "NO" wherein I wanted to rename/append it as " ABC Yes" and "ABC No" on the widget legend ONLY


12 - Data Integration
12 - Data Integration

Hi @subramanian_cv ,

Try this script : 

widget.on('processresult', function(se, ev){
	ev.result.legend.labelFormatter= function () {
            return 'ABC ' +;



7 - Data Storage
7 - Data Storage

right-click the chart with the records collection you need to rename, and click choose factsin the pick records supply dialog fieldunder Legend Entries (series), choose the statistics seriesand click Edit. inside the collection name containerkind the name you want to use...

7 - Data Storage
7 - Data Storage

Thanks James, Can I request a screenshot for the same because I can't find "choose facts" when I right click the chart

Voice of Customer
Impact Business Intelligence (BI) and Analytics Market Research

Click Here & Complete Dresner's Wisdom of Crowds® Market Study Survey Today!

Community Toolbox

Recommended quick links to assist you in optimizing your community experience:

Need additional support?:

Community Support Request

Don't miss out:

Earn a BETA Launch Challenge Badge!