drop down menu - D3.js Bar Chart axis label having select box -


we have requirement add drop down axis label user can change data there.we require drop down box effect on specific label.

one approach have tried add svg:image label , functionality working fine other label having down arrow image not required. can me out how can select 1 label? there multiple labels , index getting changed on chart update. please find below code working adding images labels.

e.g.

g.selectall('.nv-x.nv-axis').selectall('.tick.major').append("svg:image"). on("click", click) .attr("xlink:href", "images/top-bar-logo.png") .attr("width", 20) .attr("height", 20).attr("x", -20); 

you can use filter() function select ticks need append image to. documentation i've linked has few examples -- might able without filter() passing different selector selectall().


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -