Alexis Pister
Alexis Pister

Reputation: 499

Convert a D3 selection into a Jquery selection

I have a D3 selection

let s = d3.select("#my-div")

that I would like to transform into a Jquery selection. Is it possible ?

Upvotes: 2

Views: 146

Answers (1)

Michael Rovinsky
Michael Rovinsky

Reputation: 7210

const d3Selection = d3.select("#my-div");    
const jQuerySelection = $(d3Selection.node());

Upvotes: 3

Related Questions