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:
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.