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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Edit text size for card Visual in powerBI embedded

Hi,

I created a card visal and added data fields in powerbi Embedded. Now I want to edit the text size of the data. Any idea on how to accomplish that? Any help would be appreciated.

 

let response = await page.createVisual('card', layout);
let lastCreatedVisual = response.visual;
await addCardDataFields(lastCreatedVisual.name);
 
async function addCardDataFields(visualname,colName,tblName){
        try{
            let page = await report.getActivePage();
            let visual = await page.getVisualByName(visualname);
            //defining datafields
            let dataField = {
                column: colName,
                table: tblName,
                schema: "http://powerbi.com/product/schema#column",
            };
            // Adding visual data fields
            await visual.addDataField("Values", dataField);
        }
        catch(errors){
            console.log("Error adding Data fields to Card :",errors);
        }
    };
    //
 
Thanks

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Got It! have to use custom theme in the config!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Got It! have to use custom theme in the config!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.