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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors