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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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