Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
akshaybogar
Frequent Visitor

change axis title from javascript using Embed Configuration

As show in attached screen shot we could see Series Titles such as This Year Sales,Last Year Sales and Gross Margin Last Year % etc. I want change this text from javascript mvc using powerbi-embeded configuation. How do I do that ?

How do I implement multilingual for this title using javascript?

How do we impement multilingual concept in  power bi?

Below is sample code.

 

var standardRptConfig = {
pageName: "ReportSection2",
filters: FiltersForStandardReports,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: false
}
};
var standardRptElement = document.getElementById('pbi-standardreport');

 standardReport = powerbi.embed(standardRptElement, standardRptConfig);

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @akshaybogar,

 

Current power bi not support to use javascript to edit embed contents title.
Maybe you can try to use third party web browser plugin to write a custom javascript function to replace title text from generated html elements.

 

Regards,

Xiaoxin Sheng

Hi Xiaoxin 

Do you have sample code about the approach?..could you please suggest ?

 

Thanks

Akshay

Anonymous
Not applicable

Hi @akshaybogar,

 

You can try to use third party browser plugin with javascript function to replace html element:

JS. How to replace html element with another element/text, represented in string?

 

Regards,

Xiaoxin Sheng

But Html content rendered inside the iframe content. We cannot read or access to iframe content.it will be too challenging.Please suggest

akshaybogar
Frequent Visitor

As show in attached screen shot we could see Series Titles such as This Year Sales,Last Year Sales and Gross Margin Last Year % etc. I want change this text from javascript mvc using powerbi-embeded configuation. How do I do that ?

How do I implement multilingual for this title using javascript?

How do we impement multilingual concept in  power bi?

Below is sample code.

 

var standardRptConfig = {
pageName: "ReportSection2",
filters: FiltersForStandardReports,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: false
}
};
var standardRptElement = document.getElementById('pbi-standardreport');

 standardReport = powerbi.embed(standardRptElement, standardRptConfig);

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.