Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a custom button using D3JS visual



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.



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.



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:


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



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



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

Kind regards,


Community Champion
Community Champion

@jppp to help you in using D3JS visual.


Ignat Vilesov,

Software Engineer


Microsoft Power BI Custom Visuals

Helpful resources


2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

BizApps LATAM 2023

Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

Power Platform Bootcamp

Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.