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
Anonymous
Not applicable

Create a custom button using D3JS visual

Hi,

 

I want to create a button using D3JS visual which should export table data in to the excel. Could you please help me on this ? 

 

Thanks in advance.

Shubham

3 REPLIES 3
jppp
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

I don't think that this is possible as all custom visuals are running in a sandbox and cannot act as a web end point to 'serve' the Excel file.

Maybe it is easier to look at the PowerApp visual and its possibilities to achieve your goal.

 

-JP

Hi jppp,

Thank you for developing the D3.js add in. I've been looking to add buttons/combo boxes, etc. into the tool. However, I can't get the charts to respond to a change. I've been trying to recreate this, here. 

I was wondering if this is possible or whether it's been disabled. In Microsoft's notes, here, it says the following is not allowed:

  • Using innerHTML, or D3.html(user data or user input).

Here is where I've got to:

radders_0-1674561683308.png

For the buttons example, I created my buttons (I also tried attr('onclick', 'update(data1)') 😞

radders_2-1674561852733.png

 

I'm sure the function I have to plot the chart works as I call it when the form first loads:

radders_3-1674562002605.png

 

Can you let me know if it is possible or has been disabled?

Kind regards,

Radders

v-viig
Community Champion
Community Champion

@jppp to help you in using D3JS visual.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

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.

Top Kudoed Authors