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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.