Hi all,
Below is the code for table rows having some .style
table.append("tr")
.selectAll("td")
.data(arr_sum_each) //some array to make table rows
.enter()
.append("td")
.style("color", "Blue")
.style("background-color", "black)
.style("background-color", function(d)
{
if(i%2==0)
{
return "yellow";
}
})
.text(function(d){return d;});
I'm trying to set background color of table rows first, and then setting alternate rows' color in 3rd style tag. Not working....need help!!
+ can i use tr:nth-child(even/odd) inside .style() ??
thanks in advance.