Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17881

Implementing D3 event handling in Power BI.

$
0
0

As we know power bi cutom visuals fully supports D3 engine.

Recently tried to achieve drill down functionality solely using D3 event handling. 

Working javascript snippet for the visual:

image.png

functioncards(data){
lettr=d3.select("tbody")
.selectAll("tr")
.data(data.children)
.enter()
.append("tr")
.html((d) => { returnd.name +"</br>"+d.value })
.attr("font-family", "sans-serif")
.attr("font-size", "28px")
.attr("class","sampletd")
.on('click',this.clickDown);
}
//clickDown is drill down handling method.
clicking on each card activates the drill down fnctionality.
but the same code migrated to TS is not rendering in Power BI.
 
Any sample illustaration, suggestion or any specific feature of Power bi which can be used in this scenario will be appreciated.

Viewing all articles
Browse latest Browse all 17881

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>