-
HongAugust 5, 2016 at 12:39 am #6354
Hi, thx for your open source
i was trying to change color of specific bar that i choose
,, a bar
i couldn’t find code that should change
plz answer methank you.
vizulyAugust 5, 2016 at 8:55 am #6355Hello Hong,
Probably the easiest option to change just one link path (I assume that is what you mean by a bar) is to use a d3.select statement to access the element and change it by using a filter to get the specific data element. Something like this:
d3.selectAll(“.vz-weighted_tree-link”).filter(function (d) {
return (d.someAttribute == someValue)
})
.style(“fill”,myNewColor);– Tom
-
|
Viewing 1 reply thread
You must be logged in to reply to this topic.